IE7 jQuery 1.9.1问题 [英] IE7 jQuery 1.9.1 issues

查看:80
本文介绍了IE7 jQuery 1.9.1问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

仅在IE7中,脚本错误消息显示在状态栏中,这会削弱UI.例如,如果我单击任何锚标签,则该标签不起作用.顺便说一句,此脚本错误位置和调用堆栈是使用IE7的Web开发帮助器获取的.

In only IE7, the script error message shows-up in the status bar, which cripples the UI. For example, if I click on any of the anchor tags, it doesn't work. By the way, this script error location and callstack was taken using the Web Development Helper for IE7.

如果我包含 jquery-1.9.1.min.js ,则在IE7中,我会看到以下脚本错误消息:

If I include jquery-1.9.1.min.js, in IE7 I see the following script error messages:

at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.min.js [4]
    wt
    code: if(t=i.find.ID(u.matches[0].replace(et,tt),t)[0],!t) at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.min.js [4]
    st
    code: return wt(e.replace(W,"$1"),t,n,r) at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.min.js [4]
    JScript anonymous function
    code: b.find(e,this[t],n) at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.min.js [3]
    JScript anonymous function
    code: return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e) at http://10.15.1.77:8080/mhs/3p/jquery-migrate-1.1.1.min.js [2]
    JScript anonymous function
    code: return t&&"string"==typeof t&&!e.isPlainObject(n)&&(o=y.exec(t))&&o[1]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(e.trim(t),n,!0),n,a):v.apply(this,arguments) at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.min.js [3]
    JScript anonymous function
    code: return new b.fn.init(e,t,r) at http://10.15.1.77:8080/mhs/nwtTools.js [124]
    JScript anonymous function
    code: $("#IPL a").click(function()  {
            self.dropdownTools.hide();
        }) at http://10.15.1.77:8080/mhs/nwtTools.js [10]
    JScript anonymous function
    code: this.attachEvents() at http://10.15.1.77:8080/mhs/nwtTools.js [270]
    JScript anonymous function
    code: var nwtTools = new NWTTools() at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.min.js [3]
    JScript anonymous function
    code: if(u[a].apply(t[0],t[1])===!1&&e.stopOnFalse) at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.min.js [3]
    JScript anonymous function
    code: return t=t||[],t=[e,t.slice?t.slice():t],!u||i&&!l||(n?l.push(t):c(t)),this at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.min.js [3]
    JScript anonymous function
    code: b.isReady=!0,e!==!0&&--b.readyWait>0||(n.resolveWith(o,[b]),b.fn.trigger&&b(o).trigger("ready").off("ready")) at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.min.js [3]
    JScript anonymous function
    code: (o.addEventListener||"load"===e.type||"complete"===o.readyState)&&(q(),b.ready())

如果我包含 jquery-1.9.1.js ,则在IE7中,我会看到以下脚本错误消息:

If I include jquery-1.9.1.js, in IE7 I see the following script error messages:

at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [5472]
    select
    code: context = Expr.find["ID"]( token.matches[0].replace( runescape, funescape ), context )[0]
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [3998]
    Sizzle
    code: return select( selector.replace( rtrim, "$1" ), context, results, seed )
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [5576]
    JScript anonymous function
    code: jQuery.find( selector, this[ i ], ret )
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [196]
    JScript anonymous function
    code: return ( context || rootjQuery ).find( selector )
at http://10.15.1.77:8080/mhs/3p/jquery-migrate-1.1.1.min.js [2]
    JScript anonymous function
    code: return t&&"string"==typeof t&&!e.isPlainObject(n)&&(o=y.exec(t))&&o[1]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(e.trim(t),n,!0),n,a):v.apply(this,arguments)
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [62]
    JScript anonymous function
    code: return new jQuery.fn.init( selector, context, rootjQuery )
at http://10.15.1.77:8080/mhs/nwtTools.js [124]
    JScript anonymous function
    code: $("#IPL a").click(function()  {
            self.dropdownTools.hide();
        })
at http://10.15.1.77:8080/mhs/nwtTools.js [10]
    JScript anonymous function
    code: this.attachEvents()
at http://10.15.1.77:8080/mhs/nwtTools.js [270]
    JScript anonymous function
    code: var nwtTools = new NWTTools()
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [1037]
    JScript anonymous function
    code: if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse )
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [1148]
    JScript anonymous function
    code: fire( args )
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [433]
    JScript anonymous function
    code: readyList.resolveWith( document, [ jQuery ] )
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [103]
    JScript anonymous function
    code: jQuery.ready()
at http://10.15.1.77:8080/mhs/nwtTools.js [124]
    JScript anonymous function
    code: $("#IPL a").click(function()  {
            self.dropdownTools.hide();
        })
at http://10.15.1.77:8080/mhs/nwtTools.js [10]
    JScript anonymous function
    code: this.attachEvents()
at http://10.15.1.77:8080/mhs/nwtTools.js [270]
    JScript anonymous function
    code: var nwtTools = new NWTTools()
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [1037]
    JScript anonymous function
    code: if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse )
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [1148]
    JScript anonymous function
    code: fire( args )
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [433]
    JScript anonymous function
    code: readyList.resolveWith( document, [ jQuery ] )
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [103]
    JScript anonymous function
    code: jQuery.ready()

推荐答案

我为IE7使用了jquery 1.7.2,为所有其他浏览器使用了jquery 1.9.1.现在工作正常.多亏了SpYk3HH.

I used jquery 1.7.2 for IE7 and jquery 1.9.1 for all the other browsers. It works fine now. Thanks to SpYk3HH.

这篇关于IE7 jQuery 1.9.1问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆