出于某种原因,我将 jQuery 的 1.8.2 版添加到我的解决方案中,即使在任何地方都没有引用它。脚本中只有 1.9.1。添加它的代码是:
bundles.Add(new ScriptBundle("~/bundles/jquery").Include("~/Scripts/jquery-{version}.js"));
事情似乎运作良好。我在控制台中也有这些错误。有任何想法吗?
Exception was thrown at line 5288, column 6 in http://xxx:7000/Scripts/jquery-1.8.2.js
0x800a139e - JavaScript runtime error: SyntaxError
Exception was thrown at line 4224, column 4 in http://xxx:7000/Scripts/jquery-1.9.1.js
0x800a139e - JavaScript runtime error: SyntaxError
Exception was thrown at line 4242, column 4 in http://xxx:7000/Scripts/jquery-1.9.1.js
0x800a139e - JavaScript runtime error: SyntaxError
Exception was thrown at line 5288, column 6 in http://xxx:7000/Scripts/jquery-1.8.2.js
0x800a139e - JavaScript runtime error: SyntaxError
Exception was thrown at line 4224, column 4 in http://xxx:7000/Scripts/jquery-1.9.1.js
0x800a139e - JavaScript runtime error: SyntaxError
Exception was thrown at line 4242, column 4 in http://xxx:7000/Scripts/jquery-1.9.1.js
0x800a139e - JavaScript runtime error: SyntaxError