Jquery.min.js加载异常0x800a139e

时间:2012-12-29 21:57:59

标签: javascript jquery asp.net exception visual-studio-2012

(我修改了这篇文章以反映下面的评论,现在发布了非安抚版本的错误。)

JQuery:/ *! jQuery v1.8.3 jquery.com | jquery.org/license * / 浏览器:在Windows 8 Pro上运行的Internet Explorer(IE)v10

我正在从SiteMaster加载jquery.min.js(v1.8.3)。

<body>
    <form id="form1" runat="server">
    <script type="text/javascript" src="/jquery/jquery-1.8.3.js"></script>
        <script type="text/javascript" src="/jquery/jquery.bpopup-0.7.0.min.js"></script>

当使用VS2012内的本地IE窗口启动我的Default.aspx文件时,我得到一个例外。

Exception was thrown at line 5301, column 6 in localhost:49928/jquery/jquery-1.8.3.js

0x800a139e - JavaScript runtime error: SyntaxError

If there is a handler for this exception, the program may be safely continued.

抛出异常的实际部分是:

if ( matches ) {
    assert(function( div ) {
        // Check to see if it's possible to do matchesSelector
        // on a disconnected node (IE 9)
        disconnectedMatch = matches.call( div, "div" );

        // This should fail with an exception
            // Gecko does not error, returns false instead
        try {
            matches.call( div, "[test!='']:sizzle" );
            rbuggyMatches.push( "!=", pseudos );
        } catch ( e ) {}
    });

    // rbuggyMatches always contains :active and :focus, so no need for a length check
    rbuggyMatches = /* rbuggyMatches.length && */ new RegExp( rbuggyMatches.join("|") );

如果我按继续,页面会加载。

堆栈跟踪:     匿名函数[jquery-1.8.3.js]第5301行     断言[jquery-1.8.3.js]第3801行     匿名函数[jquery-1.8.3.js]第5293行     匿名函数[jquery-1.8.3.js]第5178行     匿名函数[jquery-1.8.3.js] 3669行     全球代码[jquery-1.8.3.js]第14行

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

我认为你可以尝试依赖于负载的方式

RequireJS是一个JavaScript文件和模块加载器。它针对浏览器内使用进行了优化,但可以在其他JavaScript环境中使用...

或 /jquery/jquery.bpopup-0.7.0.min.js是jquery-1.8.3.js的错误版本