forked from fanruan/fineui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
393 B
21 lines
393 B
8 years ago
|
/*
|
||
|
* 前端缓存
|
||
|
*/
|
||
|
window.localStorage || (window.localStorage = {
|
||
|
items: {},
|
||
|
setItem: function (k, v) {
|
||
|
BI.Cache.addCookie(k, v);
|
||
|
},
|
||
|
getItem: function (k) {
|
||
|
return BI.Cache.getCookie(k);
|
||
|
},
|
||
|
removeItem: function (k) {
|
||
|
BI.Cache.deleteCookie(k);
|
||
|
},
|
||
|
key: function () {
|
||
|
|
||
|
},
|
||
|
clear: function () {
|
||
|
this.items = {};
|
||
|
}
|
||
|
});
|