'JQuery' is undefined

前端 未结 19 1406
生来不讨喜
生来不讨喜 2020-12-28 15:21

I am working on a ASP.net project created with local file system settings. I am using MVC and Jquery. Jquery is working fine when I run the application in debug mode i.e. in

19条回答
  •  隐瞒了意图╮
    2020-12-28 16:08

    I got the message by having a mismatch between the version of JavaScript in the page and the version in the project.

    On the page: <script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript">

    Actual version in the project: jquery-1.4.1.min.js

    Diagnosed by using Firebug, and setting it show all errors, as described in the accepted answer.

提交回复
热议问题