上下文全局变量取值function加变量

develop
yhy 2020-11-24 10:06:44 +08:00
parent 3f9636e365
commit 7bc1efa9fb
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}