我只是尝试更改我的 jquery ui 对母版页的引用。我仅在 Internet Explorer 上收到上述错误。
我在 Firefox 和 Chrome 上没有收到错误消息。
这是抛出错误的 jquery 代码:
return a.browser.msie?(b=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),c=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth),b<c?a(window).width()+"px":b+"px"):a(document).width()+"px"},resize:function(){var b=a([]);a.each(a.ui.dialog.overlay.instances,function()
我有下面的母版页:
<head id="Head1" runat="server">
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/redmond/jquery-ui.css"
type="text/css" />
<asp:ContentPlaceHolder ID="ExtraHeadContent" runat="server">
</asp:ContentPlaceHolder>
</head>
<form id="form2" runat="server">
<asp:ScriptManager ID="ScriptManagerService" runat="server">
<Scripts>
<asp:ScriptReference Path="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" ScriptMode="Auto" />
<asp:ScriptReference Path="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js" ScriptMode="Auto" />
</Scripts>
</asp:ScriptManager>
</form>
</body>
请让我知道我需要做什么?
我尝试将 jquery 引用放在 head 部分中,但我的 aspx 文件中的 jquery 代码似乎给出错误,指出“dialog”对象未定义或“tooltip”对象未定义。我认为当我尝试将引用放入 head 部分时,jquery 库没有被加载。
jQuery.浏览器 http://api.jquery.com/jQuery.browser/已经removed http://jquery.com/upgrade-guide/1.9/#jquery-browser-removed在 jQuery 1.9 中(并且您使用 1.10),因此任何将其作为对象处理的尝试(即访问其msie
财产)注定要失败。如果您仍想使用它,请包含jQuery 迁移 https://github.com/jquery/jquery-migrate/#readme与 jQuery 一起使用的插件
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)