标签:org return .net rem cookie bst array item html5
cookies:
http://www.jb51.net/article/14566.htm
Web存储
http://www.w3school.com.cn/html5/html_5_webstorage.asp
http://blog.csdn.net/renfufei/article/details/9934625
localStorage.fresh = “vfresh.org”; //设置一个键值 var a = localStorage.fresh; //获取键值
//清空storage localStorage.clear(); //设置一个键值 localStorage.setItem(“fresh”,“vfresh.org”); //获取一个键值 localStorage.getItem(“fresh”); //return “vfresh.org” //获取指定下标的键的名称(如同Array) localStorage.key(0); //return “fresh” //删除一个键值 localStorage.removeItem(“fresh”); sessionStorage相同就不用在废话了,他相当于我们的过期时间Expire=0的cookie;
经典函数构造方法:
https://segmentfault.com/q/1010000002415517
标签:org return .net rem cookie bst array item html5
原文地址:http://www.cnblogs.com/liuyang92/p/6100064.html