parent
1187d7d5d9
commit
3f9636e365
|
|
@ -0,0 +1,22 @@
|
|||
layui.define(['jquery', 'element'], function(exports) {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* 上下文,全局配置存储
|
||||
* */
|
||||
var MOD_NAME = 'context',
|
||||
$ = layui.jquery,
|
||||
element = layui.element;
|
||||
|
||||
var context = new function() {
|
||||
|
||||
this.put = function(key,value){
|
||||
localStorage.setItem(key,value);
|
||||
}
|
||||
|
||||
this.get = function(){
|
||||
return localStorage.getItem(key);
|
||||
}
|
||||
}
|
||||
exports(MOD_NAME, context);
|
||||
});
|
||||
|
|
@ -2,7 +2,7 @@ layui.define(['jquery', 'element'], function(exports) {
|
|||
"use strict";
|
||||
|
||||
/**
|
||||
* 数 字 滚 动 组 件
|
||||
* 类 型 转 换 工 具 类
|
||||
* */
|
||||
var MOD_NAME = 'convert',
|
||||
$ = layui.jquery,
|
||||
|
|
|
|||
|
|
@ -39,5 +39,6 @@ layui.config({
|
|||
card: "card",
|
||||
loading: "loading",
|
||||
cropper:"cropper",
|
||||
convert:"convert"
|
||||
convert:"convert",
|
||||
context:"context"
|
||||
});
|
||||
|
|
|
|||
|
|
@ -39,5 +39,6 @@ layui.config({
|
|||
card: "card",
|
||||
loading: "loading",
|
||||
cropper:"cropper",
|
||||
convert:"convert"
|
||||
convert:"convert",
|
||||
context:"context"
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue