我购买了WordPress主题并已开始对其进行自定义。主题的一个方面是,我不能为我的生活找出它为什么重定向到一个名为“未定义”的页面。使用jQuery与WordPress主题时出现错误
sdndaily.com是有问题的网站。
!function (a, b) {
'object' == typeof module && 'object' == typeof module.exports ? module.exports = a.document ? b(a, !0) : function (a) {
if (!a.document) throw new Error('jQuery requires a window with a document');
return b(a)
}
: b(a)
}('undefined' != typeof window ? window : this, function (a, b) {
var c = [
],
d = c.slice,
e = c.concat,
f = c.push,
g = c.indexOf,
h = {
},
i = h.toString,
j = h.hasOwnProperty,
k = {
},
l = '1.11.1',
m = function (a, b) {
return new m.fn.init(a, b)
}
在右上角有一个使用JavaScript来下拉一节,插入你的电子邮件的信封图标。点击它后不久,你会被重定向到一个标题为页“不确定”和萤火虫吐出一个错误:
Error("jQuery requires a window with a document");
围绕信封的锚标签没有href。它的行为就像有些js假设属性会在那里一样。因此,未定义的值正在等待一串“未定义”。 – 2014-10-09 00:50:05