zoukankan      html  css  js  c++  java
  • localStorage

    将数组转换成json后,存入localStorage

    https://my.oschina.net/crazymus/blog/371757

    http://blog.csdn.net/u011413061/article/details/49999785 

    时间函数:

    function compareTime(myTime) {
            var currentTime = new Date;
            var myArray = Array();
            myArray[0] = currentTime.getFullYear();
            myArray[1] = currentTime.getMonth();
            myArray[2] = currentTime.getDate();
            myArray[3] = currentTime.getHours();
            myArray[4] = currentTime.getMinutes();
            myArray[5] = currentTime.getSeconds();
            for (var i in myArray){
                console.log("myArray"+[i]+": "+myArray[i]);
            }
            for (var x=0; x<4 ; x++){
                if (myArray[x]);
            }
         }
    

      

  • 相关阅读:
    3.12
    3.11
    安卓开发
    安卓开发
    安卓开发
    安卓开发
    安卓开发
    安卓开发
    安卓开发
    安卓开发
  • 原文地址:https://www.cnblogs.com/liuyang92/p/6112000.html
Copyright © 2011-2022 走看看