简单的配置类,用于页面级别的配置数据存取
var conf = {};
exports.get = function (key, defaultVal) {
if (conf.hasOwnProperty(key)) {
return conf[key];
}
return defaultVal;
};
exports.set = function (key, val) {
conf[key] = val;
};
简单的配置类,用于页面级别的配置数据存取
var conf = {};
exports.get = function (key, defaultVal) {
if (conf.hasOwnProperty(key)) {
return conf[key];
}
return defaultVal;
};
exports.set = function (key, val) {
conf[key] = val;
};