js换值 cookie

2018-08-10  本文已影响0人  _嘿嘿_

for (var i in objs) {
var obj = objs[i];
var item = {};
$.extend(item, obj);
item.text = obj.containername;
item.id = obj.containerid;
items.push(item);
}

imeWeb.setCookie = function (name, value, time) {
if(time == null) {
.cookie(name, value, { path: '/imeWeb'}); } else {.cookie(name, value, {expires: time, path: '/imeWeb'});
}
}

imeWeb.getCookie = function (name) {
return $.cookie(name);
}

/**

上一篇下一篇

猜你喜欢

热点阅读