【问题标题】:jquery-1.8.2.js crash with internet explorer browserjquery-1.8.2.js 与 Internet Explorer 浏览器崩溃
【发布时间】:2013-10-24 04:54:14
【问题描述】:

你好,我在这个与 ie 的兼容性问题背后发疯了。 这个问题只发生在 Internet Explorer(我有版本 10)上,我对 firefox 没有任何问题。 我正在尝试打开一个滑动表单(不是我创建的,特别是: a link 但是当我去运行代码(仅在 Internet Explorer 上)时,我得到以下异常。 你知道告诉我什么到期吗?

// Use this for any attribute in IE6/7    
// This fixes almost every IE6/7 issue
nodeHook = jQuery.valHooks.button = {
get: function( elem, name ) {
var ret;
ret = elem.getAttributeNode( name );
return ret && ( fixSpecified[ name ] ? ret.value !== "" : ret.specified ) ?
ret.value :undefined;
},
set: function( elem, value, name ) {
// Set the existing or create a new attribute node
var ret = elem.getAttributeNode( name );
if ( !ret ) {
ret = document.createAttribute( name );
elem.setAttributeNode( ret );
}
return ( ret.value = value + "" ); --> exception in jquery-1.8.2.js cannot find a member
}
};

我忘记了,我正在使用带有模板 mvc4 的 vc2012。

坦克

【问题讨论】:

    标签: jquery internet-explorer asp.net-mvc-4 cross-browser compatibility


    【解决方案1】:

    当尝试在 IE 10 中使用不同的浏览器模式运行您的应用时,通常会出现此问题。

    要解决这个问题,请按F12 并检查浏览器模式和文档模式。可能其中之一是IE 8 或以下。将“浏览器模式”更改为“IE10”,将“文档模式”更改为“标准”。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-02-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多