• <fieldset id="8imwq"><menu id="8imwq"></menu></fieldset>
  • <bdo id="8imwq"><input id="8imwq"></input></bdo>
    最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
    問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
    當前位置: 首頁 - 科技 - 知識百科 - 正文

    jQueryajaxBUG:objectdoesn'tsupportthispropertyormethod_jquery

    來源:懂視網 責編:小采 時間:2020-11-27 20:53:58
    文檔

    jQueryajaxBUG:objectdoesn'tsupportthispropertyormethod_jquery

    jQueryajaxBUG:objectdoesn'tsupportthispropertyormethod_jquery:問題:jQuery控件的一個BUG 使用$.ajax時出現的錯誤,IE7下才會出錯,IE6,IE8都正常。錯誤提示如下圖: 官方論壇上的說明: http://forum.jquery.com/topic/object-doesn-t-support-this-property-or-method-from-jqu
    推薦度:
    導讀jQueryajaxBUG:objectdoesn'tsupportthispropertyormethod_jquery:問題:jQuery控件的一個BUG 使用$.ajax時出現的錯誤,IE7下才會出錯,IE6,IE8都正常。錯誤提示如下圖: 官方論壇上的說明: http://forum.jquery.com/topic/object-doesn-t-support-this-property-or-method-from-jqu

    問題: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.

    聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

    文檔

    jQueryajaxBUG:objectdoesn'tsupportthispropertyormethod_jquery

    jQueryajaxBUG:objectdoesn'tsupportthispropertyormethod_jquery:問題:jQuery控件的一個BUG 使用$.ajax時出現的錯誤,IE7下才會出錯,IE6,IE8都正常。錯誤提示如下圖: 官方論壇上的說明: http://forum.jquery.com/topic/object-doesn-t-support-this-property-or-method-from-jqu
    推薦度:
    標簽: bug do this
    • 熱門焦點

    最新推薦

    猜你喜歡

    熱門推薦

    專題
    Top
    主站蜘蛛池模板: 99久久人人爽亚洲精品美女| 国产99视频精品免费专区| 欧美精品欧美人与动人物牲交| 无码精品一区二区三区免费视频| 亚洲精品第一国产综合精品99| 秋霞午夜鲁丝片午夜精品久| 日本VA欧美VA欧美VA精品| 久久精品中文字幕有码| 精品视频在线免费观看| 久久久久久国产精品免费无码| 免费视频精品一区二区| 国产精品99久久久久久猫咪| 国产精品高清一区二区三区不卡| 亚洲精品国偷自产在线| 久久99精品国产麻豆蜜芽| 亚洲国产精品人久久| 国产亚洲精品a在线观看app| 久久99国产乱子伦精品免费| 亚洲愉拍99热成人精品热久久| 日韩午夜高清福利片在线观看欧美亚洲精品suv | 国产在线精品一区二区不卡| 无码囯产精品一区二区免费| 天天爽夜夜爽夜夜爽精品视频 | 国产人成精品综合欧美成人| 亚洲无删减国产精品一区| 国产精品高清一区二区人妖| 97精品一区二区视频在线观看| 国产亚洲精品资源在线26u| 亚洲国产精品无码一线岛国| 一本精品中文字幕在线| 亚洲国产欧美日韩精品一区二区三区 | 高清在线国产午夜精品| 久久99精品国产99久久6男男| 国产精品福利一区二区久久| 国产精品免费观看| 四虎影视国产精品永久在线 | 精品亚洲成AV人在线观看| 久久久久人妻精品一区二区三区 | 国产cosplay精品视频| 久久99精品久久久久久| Aⅴ精品无码无卡在线观看|