【发布时间】:2017-06-17 11:38:57
【问题描述】:
我使用 jQuery 在 MVC 中开发了一个 Web 应用程序。
现在我一次又一次地收到此错误。我不知道我现在错过了什么。
有人可以指导我吗?
它在浏览器的控制台中抛出此错误消息:
jQuery.Deferred 异常:url.indexOf 不是函数 TypeError:url.indexOf 不是函数
在 jQuery.fn.init.jQuery.fn.load (http://localhost:5713/Scripts/jquery-3.1.1.js:9793:13)
在 HTML 文档。 (http://localhost:5713/Theme/js/main.js:27:12)
在mayThrow (http://localhost:5713/Scripts/jquery-3.1.1.js:3570:29)
在进程 (http://localhost:5713/Scripts/jquery-3.1.1.js:3638:12) 未定义 jQuery.Deferred.exceptionHook @ jquery-3.1.1.js:3846
jquery-3.1.1.js:3855 Uncaught TypeError: url.indexOf 不是函数
在 jQuery.fn.init.jQuery.fn.load (jquery-3.1.1.js:9793)
在 HTML 文档。 (main.js:27)
在可能抛出 (jquery-3.1.1.js:3570)
在进程(jquery-3.1.1.js:3638)
【问题讨论】:
标签: jquery asp.net-mvc