TaoLer/public/static/component/pear/module/context.js
2023-03-16 22:40:15 +08:00

20 lines
362 B
JavaScript

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(key){
return localStorage.getItem(key);
}
}
exports(MOD_NAME, context);
});