`
tanglei198577
  • 浏览: 59686 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类

Save the time - by Js

阅读更多

 

function init()
{
 var arrStr = document.cookie.split("; ");
 var time ;
    for(var i = 0;i < arrStr.length;i ++){
     var temp = arrStr[i].split("=");
     if(temp[0] == "<%=username %>"
    {
     time = unescape(temp[1]);
    }
   }
 var date = new Date();
 var str = "<%=username %>"+"="+escape("<%=date %>"); 
 var ms = 99999999*3600*1000;
 date.setTime(date.getTime() + ms);
 str += "; expires=" + date.toGMTString();
 document.cookie = str;
 document.getElementById("inputTime").value = time;
}

 

分享到:
评论

相关推荐

    Full Stack JavaScript 无水印pdf 0分

    This is a hands-on book which introduces you to agile JavaScript web and mobile software development using the latest cutting-edge front-end and back-end technologies including: Node.js, MongoDB, ...

    The Craft of System Security

    7.9 Meet-in-the-middle attack 170 7.10 Inner-CBC EDE for a block cipher in triple mode 171 7.11 Outer-CBC EDE for a block cipher in triple mode 171 7.12 CBC residue MAC 173 7.13 Public-key ...

    Full Stack JavaScript(Apress,2015)

    This is a hands-on book which introduces you to agile JavaScript web and mobile software development using the latest cutting-edge front-end and back-end technologies including: Node.js, MongoDB, ...

    The Majesty Of Vue.js Paperback – October 28, 2016

    and that its integration can save you a lot of time and effort This book will guide you through the path of the rapidly spreading JavaScript Framework Vue.js Who This Book Is For This book is for ...

    Cross-Platform Desktop Applications.pdf

    codebase, meaning that developers can save time and energy when creating desktop apps that all OSs can use. NW.js and Electron come from a shared history, and have some similar approaches to app ...

    Learning Less.js(PACKT,2015)

    We begin with exploring the library, and will learn about the tricks it uses to help us save development time when creating and managing styles, right through to using Less.js in some practical, real...

    Smart Mobile Studio Enterprise v2.0 Build 723 Cracked

    You have reached the home of Smart Mobile Studio, a very exciting project that allows you to write ordinary Pascal in the flavour made famous by Delphi and Free Pascal, but generate feature rich, ...

    Practical JavaScript, DOM Scripting and Ajax Projects

    Practical JavaScript, DOM, and Ajax Projects is ideal for web developers already experienced in ... This book will save you countless hours of development time and help further your JavaScript knowledge!

    intellitamper

    Results are displayed in real time in the window with various informations about progression. Files and folders found are displayed in a friendly mini Windows-Explorer. If you have any ...

    Cross-Platform Desktop Applications Using Node, Electron, and NW.js 1st2018

    codebase, meaning that developers can save time and energy when creating desktop apps that all OSs can use. NW.js and Electron come from a shared history, and have some similar approaches to app ...

    php.ini-development

    The directory from the --with-config-file-path compile time option, or the ; Windows directory (C:\windows or C:\winnt) ; See the PHP docs for more specific information. ; ...

    Sortable前端框架

    * [Sorting with the help of HTML5 Drag'n'Drop API](https://github.com/RubaXa/Sortable/wiki/Sorting-with-the-help-of-HTML5-Drag'n'Drop-API/) (December 23, 2013) ### Install Via npm ```bash ...

    hydra 7.2 win32

    this can save you a lot of time :-) cat words.txt | sort | uniq &gt; dictionary.txt * if you know that the target is using a password policy (allowing users only to choose password with a minimum ...

    BobBuilder_app

    MGIndex will sort the keys in the page's dictionary and split the data in two pages ( similar to a b+tree split) and update the page list by adding the new page and changing the first keys needed....

    jQwidgets 3.6.0

    If you want to make a good, well informed decision, we recommend you to check the recent browser usage statistics and analyze the browsers and devices used by your website抯 visitors. Optimized for ...

    HTML5 Games

    - **Loading the Scripts**: Integrating JavaScript code and libraries needed for the game. - **Creating the Splash Screen**: Designing and implementing the splash screen, including styling and ...

    edgehero js

    By removing the need to write a lot of code to implement popular features, it will allow you to save time and get your project published in record time. Edgehero.js supports centering, forms/inputs,...

    HTML A Beginner's Guide 第4版 2009-06-08 出版

    You'll also go beyond the basics and learn how to save your own web graphics, use Cascading Style Sheets (CSS), create dynamic web content with basic JavaScript, and upload your site to the web. By ...

    jdk1.8-windows版64位

    8. **Nashorn JavaScript Engine:** JDK 1.8 includes a built-in JavaScript engine called Nashorn, allowing Java developers to execute JavaScript code within the JVM and facilitate interoperation between...

Global site tag (gtag.js) - Google Analytics