摘要: var Cookie={ set: function (name, value, days) { var d = new Date; d.setTime(d.getTime() + 24*60*60*1000*days); window.document.cookie = name + "=" + 阅读全文
posted @ 2017-05-30 23:52 伊优 阅读(238) 评论(0) 推荐(0) 编辑
摘要: var store={ // 保存 save:function(key,value){ localStorage.setItem(key,JSON.stringify(value)); }, // 获取 fetch:function(key){ return JSON.parse(localStor 阅读全文
posted @ 2017-05-30 23:51 伊优 阅读(1967) 评论(0) 推荐(0) 编辑