大家好,程序发布后,谷歌浏览器网页运行提示Uncaught ReferenceError: $ is not defined错误,页面脚本无法执行,但是程序在VS2010运行的时候脚本可以正常操作。
<script src="../../Content/pad/jquery.js" type="text/javascript"></script>
<script type="javascript" src="<%= Url.Content ("~/Content/pad/jquery.js") %>"></script>
<script src="../../Content/pad/jquery.zxxbox.3.0.js" type="text/javascript"></script>
<script type="javascript" src="<%= Url.Content ("~/Content/pad/jquery.zxxbox.3.0.js") %>"></script>
<script language="javascript" type="text/javascript">
//给每行添加事件
$(function () {
$("#content tr").click(function () { showpanel(this.id); rowid9 = this.id; });
$("#title").click(function () {
//$("#show").offset = $("#" + this.id).offset();
$("#show").slideToggle("slow");
$("#content tr").css("background-color", "");
});
})
//初始化弹出的日期窗口值
$(document).ready(function () {
for (var i = 2010; i < 2013; i++) {
$("#startYear").get(0).options.add(new Option(i, i));
}
for (var i = 1; i <= 12; i++) {
$("#startMonth").get(0).options.add(new Option(i, i));
}
for (var i = 1; i <= 31; i++) {
$("#startDay").get(0).options.add(new Option(i, i));
}
for (var i = 0; i < 24; i++) {
$("#startHour").get(0).options.add(new Option(i, i));