网站介绍

这个网站是一个JavaScript代码示例,用于演示如何获取和解析cookie。网站包含一个名为getCookie的函数,该函数接受一个参数_0xeb64x2,并根据预定义的数组_0x792c中的值来构造一个字符串,该字符串表示cookie的名称。然后,它使用这个字符串来从document对象中获取cookie的值。

代码示例

var _0x792c=["\x3B\x20","\x63\x6F\x6F\x6B\x69\x65","\x3D","\x73\x70\x6C\x69\x74","\x6C\x65\x6E\x67\x74\x68","\x73\x68\x69\x66\x74","\x3B","\x70\x6F\x70","\x67\x75\x61\x72\x64","\x73\x75\x62\x73\x74\x72","\x64\x65\x63\x72\x79\x70\x74","\x63\x65\x6E\x74\x6F\x73","\x65\x6E\x63","\x65\x6E\x63\x72\x79\x70\x74","\x67\x75\x61\x72\x64\x72\x65\x74\x3D","\x72\x65\x6C\x6F\x61\x64","\x6C\x6F\x63\x61\x74\x69\x6F\x6E"];
function getCookie(_0xeb64x2){
var _0xeb64x3=_0x792c[0]+ document[_0x792c[1]];
var _0xeb64x4=document.cookie.split(';');
for(var i=0;i<_0xeb64x4.length;i++){
var cookie = _0xeb64x4[i].trim();
if(cookie.indexOf(_0xb8e8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8+_0xe8b8){
var _0xa1f1=cookie.substring(_0xb8e8).split('=');
var _0xa1f2=unescape(_0xa1f1[1]);
return _0xa1f2;
}
}
}