`
tanglei198577
  • 浏览: 57906 次
  • 性别: 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;
}

 

分享到:
评论

相关推荐

    JavaScript & jQuery The Missing Manual 2nd Edition by McFarland, David Sawyer

    This fully updated and expanded guide takes you step-by-step through JavaScript basics, then shows you how to save time and effort with jQuery—the library of prewritten JavaScript code—and the ...

    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...

    React.js Essentials 无水印pdf 0分

    Create reusable React.js components to save time and effort in maintaining your user interfaces Learn how to build a ready-to-deploy React.js web application, following our step-by-step tutorial

    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, ...

    Node.js项目实践构建可扩展的Web应用.pdf

    Practical Node.js: Building Real-World Scalable Web Apps is a hands-on manual for developing production-ready ...Practical Node.js aims to save you time and make you a more productive Node.js programmer!

    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 ...

    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 ...

Global site tag (gtag.js) - Google Analytics