jQuery的-1.8.2.js碰撞与Internet Explorer浏览器 [英] jquery-1.8.2.js crash with internet explorer browser
问题描述
您好我要去后面,即此兼容性问题疯了。
只有使用Internet Explorer(我有10版),我有火狐没有问题,会出现问题。
我试图打开一个滑模(不是我创建的,具体如下:
一个链接
但是当我去运行code(仅适用于Internet Explorer)中,我得到了以下异常。
你知道的告诉我是什么原因?
Hello I'm going crazy behind this compatibility issue with ie. The problem occurs only with internet explorer (I have version 10), I have no problems with firefox. I'm trying to open a sliding form (not created by me, specifically: a link but when I go to run the code (only on internet explorer) I get the following exception. Do you know tell me what is due?
// 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
}
};
我忘了,我用vc2012与模板mvc4。
I was forgetting, I'm using vc2012 with a template mvc4.
坦克
推荐答案
此问题,尝试使用不同的浏览器模式来运行你的应用程序在IE 10的时候通常就出现了。
This issue normally arises when trying to run your app in IE 10 using different browser modes.
要解决这个问题preSS F12
并检查浏览器模式和文档模式。也许其中一个是 IE 8
或以下。更改浏览器模式到 IE10 和文档模式到标准
To fix that press F12
and check for the Browser mode and Document Mode. Probably one of them is IE 8
or below. Change the "Browser Mode" to "IE10" and "Document Mode" to "Standards".
这篇关于jQuery的-1.8.2.js碰撞与Internet Explorer浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!