四虎精品视频-四虎精品成人免费网站-四虎黄色网-四虎国产视频-国产免费91-国产蜜臀97一区二区三区

jQuery ajax BUG:object doesn't support this property or method

問題:jQuery控件的一個BUG
使用$.ajax時出現的錯誤,IE7下才會出錯,IE6,IE8都正常。錯誤提示如下圖:

官方論壇上的說明:

http://forum.jquery.com/topic/object-doesn-t-support-this-property-or-method-from-jquery-1-4-1-in-ie7-only
http://dev.jquery.com/ticket/6498
http://dev.jquery.com/ticket/6314

解決方案:
修改jquery-1.4.2.js。

論壇上有人提出的修改方式,我測試過可行。
復制代碼 代碼如下:
Hi, I found this seems to relate to jQuery bug 6314 (http://dev.jquery.com/ticket/6314). In IE7, if "Enable native XMLHTTP support" is checked (under Tools > InterNET Options > Advanced tab > inside the security section) then this error shows up. Unchecking/disabiling the option seems to resolve the error.

However, since I cannot tell all website viewers to uncheck that option, then the following code also seems to resolve the issue:
In non-minified jQuery, find the lines:
try {
var oldAbort = xhr.abort;
xhr.abort = function() {
if ( xhr) {
oldAbort.call( xhr );
}

onreadystatechange( "abort" );
};
} catch(e) { }

replace it with the following code:
try {
var oldAbort = xhr.abort;
xhr.abort = function() {
if ( xhr) {
if (oldAbort.call === undefined) {
oldAbort();
} else {
oldAbort.call( xhr );
}
}

onreadystatechange( "abort" );
};
} catch(e) { }

I believe the issue is as stated by other users in this forum, that the xhr (XMLHTTP) object is a native IE object, so the abort function on the xhr.abort function does not support call.

JavaScript技術jQuery ajax BUG:object doesn't support this property or method,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 成人的性行为免费| 汪汪队完整版全集免费| 红白黑黄| 珠江电视台直播 珠江频道| 小头儿子大头爸爸| stylistic device| 电车之狼| 变性手术男变女能怀孕吗| 安娜情欲| 声优闺蜜小涵| 电影双面情人| 心理健康《微笑的力量》ppt| 电影宝贝| 免费头像图片女生| 爱情公寓海报| 乱世佳人电视剧免费观看完整版 | 爱在西元前简谱| 性视频在线播放| 微信头像图片2024最新| 洋葱电影| 宋学士濂文言文翻译| 漂流者| 中医把脉| 爱情面包房| 被主人调教| 一一影视| 车震电影| 光明力量2古代封印攻略| 李莉莉| 狂野殴美激情性bbbbbb| 小猪佩奇免费版中文第三季| 林忆莲唱哭李宗盛现场| 周秀娜三级大尺度视频| 妈妈的花样年华演员表全部| 八仙过海 电影| 孙炜| 电视剧杀狼花| 男同视频在线| 欧美艹| 五年级上册口算| 贪玩的小水滴想象作文400字左右|