[JavaScript] 纯文本查看 复制代码 re = function (e) {
return void 0 == e || "-" == e || "" == e
}
ne = function (e) {
var t, r = 1, n = 0;
if (!re(e))
for (r = 0,
t = e["length"] - 1; t >= 0; t--)
n = e.charCodeAt(t),
r = (r << 6 & 268435455) + n + (n << 14),
n = 266338304 & r,
r = 0 != n ? r ^ n >> 21 : r;
return r
}
Q = function () {
return (new Date).getTime() + "" + parseInt(2147483647 * Math.random())
}
function getCode(){
return ne('item.jd.com') + '.' + Q() + '.' + Math.round((new Date).getTime() / 1e3) + '.' + Math.round((new Date).getTime() / 1e3) + '.' + Math.round((new Date).getTime() / 1e3) + '.1'
}
记录一下,需要的朋友自行拿走!
|