一个JS 不知道那出错了~帮看下~
function() {var e = function(e) {
var t = /^[\],:{}\s]*$/
, n = /\\(?:["\\\/bfnrt]|u{4})/g
, r = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[+\-]?\d+)?/g
, a = /(?:^|:|,)(?:\s*\[)+/g;
if ("object" == typeof e)
return e;
if ("string" != typeof e || !e)
return null ;
if ("string" == typeof e && (e = e.replace(/(^\s*|\s*$)/g, "")),
t.test(e.replace(n, "@").replace(r, "]").replace(a, "")))
return window.JSON && window.JSON.parse ? window.JSON.parse(e) : new Function("return " + e)();
throw new Error("Invalid JSON: " + e)
}
, t = function(t, n, r) {
var a;
a = window.XMLHttpRequest ? new XMLHttpRequest : new ActiveXObject("Microsoft.xhr"),
a.open("GET", t, !0),
a.onreadystatechange = function() {
if (4 == a.readyState) {
var t = {};
try {
t = e(a.responseText)
} catch (c) {}
200 == a.status ? "function" == typeof n && n(t) : "function" == typeof r && r(t)
}
}
,
a.send()
}
, n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/~!@#¥%……&"
, r = String.fromCharCode
, a = function(e) {
if (e.length < 2) {
var t = e.charCodeAt(0);
return 128 > t ? e : 2048 > t ? r(192 | t >>> 6) + r(128 | 63 & t) : r(224 | t >>> 12 & 15) + r(128 | t >>> 6 & 63) + r(128 | 63 & t)
}
var t = 65536 + 1024 * (e.charCodeAt(0) - 55296) + (e.charCodeAt(1) - 56320);
return r(240 | t >>> 18 & 7) + r(128 | t >>> 12 & 63) + r(128 | t >>> 6 & 63) + r(128 | 63 & t)
}
, c = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g
, o = function(e) {
return (e + "" + Math.random()).replace(c, a)
}
, i = function(e) {
var t =
, r = e.charCodeAt(0) << 16 | (e.length > 1 ? e.charCodeAt(1) : 0) << 8 | (e.length > 2 ? e.charCodeAt(2) : 0)
, a = ;
return a.join("")
}
, u = function(e) {
return e.replace(/[\s\S]{1,3}/g, i)
}
, d = function() {
return u(o((new Date).getTime()))
}
, f = function(e, t) {
return t ? d(String(e)).replace(/[+\/]/g, function(e) {
return "+" == e ? "-" : "_"
}
).replace(/=/g, "") : d(String(e))
}
, h = function(e) {
var t, n;
return document.cookie.length > 0 && (t = document.cookie.indexOf(e + "="),
-1 != t) ? (t = t + e.length + 1,
n = document.cookie.indexOf(";", t),
-1 == n && (n = document.cookie.length),
decodeURI(document.cookie.substring(t, n))) : ""
}
, l = function() {
var e = location.hash
, t = e.indexOf("/");
return t > -1 ? e.substring(1, t) : e.substring(1)
}
, p = function(e) {
var t = new RegExp(e + "=([^#&]*)","g")
, n = t.exec(location.hash);
return n ? decodeURIComponent(n) : ""
}
, s = function(e, n, r, a, c) {
t(e, function(e) {
0 === e.errno && (window.cache || (window.cache = {}),
cache || (cache = {},
cache.writeable = !0),
cache.data || (cache.data = {}),
cache.data ? cache.data instanceof Array && Array.prototype.push.apply(cache.data, e) : (cache.data = {},
cache.data = e),
cache.data.hasMore = !1,
e && e.length >= y && (cache.data.hasMore = !0),
"undefined" == typeof e.hasMore || e.hasMore || (cache.data.hasMore = !1),
window.prefetchEnable = !1,
window.prefetchCallback())
}
, function() {
window.prefetchEnable = !1,
window.prefetchCallback()
}
)
}
, g = function(e) {
var t = "localorder_" + (e || "").replace(/@/g, "");
if ("undefined" != typeof localStorage && "function" == typeof localStorage.getItem) {
var n, r = localStorage.getItem(t), a = p("type");
if (a && "3" === a)
return null ;
if (r && 2 === r.split("_").length) {
var n = r.split("_")
, c = parseInt(n, 10)
, o = {
item: n,
desc: c
};
return o
}
return null
}
}
, w = !1
, y = 100;
var window={}
window.initPrefetch = function(e, t) {
if (w === !1) {
var n = ""
, r = ""
, a = l()
, c = "list"
, o = "";
if ("category" === a ? (n = "/api/categorylist",
r = p("type"),
n += "?category=" + encodeURIComponent(r),
o = "info") : a && "list" !== a || (n = "/api/list",
r = p("path"),
r = r ? r : "/",
a = a ? a : "list",
n += "?dir=" + encodeURIComponent(r),
o = "list"),
n) {
window.prefetchEnable = !0,
window.prefetchCallback = function() {}
;
var i = g(t);
n += "&bdstoken=" + e,
n += "&logid=" + f(h("BAIDUID")),
n += "&num=" + y,
i ? (n += "&order=" + (i.item || "time"),
n += "&desc=" + ("number" == typeof i.desc ? i.desc : 1)) : n += "&order=time&desc=1",
n += "&clienttype=0&showempty=0&web=1&page=1&channel=chunlei&web=1&app_id=250528",
s(n, r, a, c, o)
}
w = !0
}
}
}
();
调用什么函数? 揰掵佲 发表于 2016-7-4 19:46
调用什么函数?
调用这个
initPrefetch('29e714952075a308bb90082cf341dd3d', '51dsfds1f6') 提供网址吧 揰掵佲 发表于 2016-7-4 22:32
提供网址吧
不好意思~刚刚在看啊正 老师的教程~
地址:**** Hidden Message ***** 主页
ID logid
**** Hidden Message *****
JS 成功返回例: logid=MTQ2NzY0NTc0OTMyODAuNTg3NzM5MDkxNTk5MzYwMQ==
logid=后面的 求助的还要隐藏网址...看网址 还要回复.... yangbing1990 发表于 2016-7-5 15:48
求助的还要隐藏网址...看网址 还要回复....
这个不是我的错~~是网站自动隐藏网址的~~只要是有HTTPWWW开头的~... 我也在学习JS 不依Baya 发表于 2016-7-6 18:19
我也在学习JS
一起学习吧~~ 看看地址{:4_89:}
页:
[1]