上下文全局变量取值function加变量
parent
3f9636e365
commit
7bc1efa9fb
|
|
@ -14,7 +14,7 @@ layui.define(['jquery', 'element'], function(exports) {
|
|||
localStorage.setItem(key,value);
|
||||
}
|
||||
|
||||
this.get = function(){
|
||||
this.get = function(key){
|
||||
return localStorage.getItem(key);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue