且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Visual Studio 2013中进行调试时出现Javascript错误

更新时间:2022-04-30 10:35:57

看起来您的脚本管理器在主页的body标签中添加了jquery引用。
您将在母版页到达正文标记之前使用'$'符号放入自己的脚本并引用jquery。

It looks as though your script manager adds in the jquery reference in the body tag of a master page. You're putting in your own script and referencing jquery using the '$' symbol before the master page gets to the body tag.

移动自己的脚本脚本到了身体之后。如果您正在使用内容占位符,则将内容占位符移动到正文后面(而不是在head部分中)。

Just move your own script to after the body. If you're using a content placeholder then move the content placeholder after the body (and not in the 'head' section).