[英]SyntaxError: missing } after function body in jquery
I've got this error: it says the missing } is after "{if(!a.document)" in the first.我遇到了这个错误:它说缺少的} 在第一个“{if(!a.document)”之后。 I've changed it a lot and didn't effect.
我已经改变了很多,并没有影响。 I've used javascript beautifier and got this code:
我使用了 javascript beautifier 并得到了这个代码:
*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ ! 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.3",
m = function(a, b) {
return new m.fn.init(a, b)
},
n = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
o = /^-ms-/,
p = /-([\da-z])/gi,
q = function(a, b) {
return b.toUpperCase()
};
It says: SyntaxError: missing } after function body jquery.js:1:135 Cant find the error.它说: SyntaxError: missing } 在函数体 jquery.js:1:135 之后找不到错误。
It looks like you just snipped out a portion of jQuery 1.11.3 .看起来您刚刚剪掉了jQuery 1.11.3的一部分。 Why?
为什么? It's not even a sensical snippet, since it contains a
:
that originally followed a ?
它甚至不是一个有意义的片段,因为它包含一个
:
最初跟在?
as part of the trinary operator.作为三元运算符的一部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.