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

Merge pull request !30 from 于涵洋/master
develop
就眠仪式 2020-11-24 10:12:42 +08:00 committed by Gitee
commit 3013a164ca
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);
}
}