📄 cookie.js
字号:
$JSI.addCacheScript('js/io/cookie.js',function(){this.hook = function(s){return eval(s);};eval(this.varText);function Cookie(path, expires, domain) {this.path = path;this.expires = expires;this.domain = domain;}Cookie.prototype.setValue = function (name, value) {document.cookie = name + "=" + escape(value) + this.getSubfix() + ";";};Cookie.prototype.getSubfix = function () {var subfix = "";subfix += (this.domain == null) ? "" : ("; domain=" + this.domain);subfix += (this.path == null) ? "" : ("; path=" + this.path);subfix += (this.expires == null) ? "" : ("; expires=" + this.expires.toGMTString());return subfix;};Cookie.prototype.getValue = function (name) {return (new RegExp(" " + name + "=([^;]*)").test(" " + document.cookie)) ? unescape(RegExp.$1) : null;};});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -