久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <i id='ZbwcO'><tr id='ZbwcO'><dt id='ZbwcO'><q id='ZbwcO'><span id='ZbwcO'><b id='ZbwcO'><form id='ZbwcO'><ins id='ZbwcO'></ins><ul id='ZbwcO'></ul><sub id='ZbwcO'></sub></form><legend id='ZbwcO'></legend><bdo id='ZbwcO'><pre id='ZbwcO'><center id='ZbwcO'></center></pre></bdo></b><th id='ZbwcO'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ZbwcO'><tfoot id='ZbwcO'></tfoot><dl id='ZbwcO'><fieldset id='ZbwcO'></fieldset></dl></div>

      <bdo id='ZbwcO'></bdo><ul id='ZbwcO'></ul>

      <legend id='ZbwcO'><style id='ZbwcO'><dir id='ZbwcO'><q id='ZbwcO'></q></dir></style></legend>
    1. <tfoot id='ZbwcO'></tfoot>

        <small id='ZbwcO'></small><noframes id='ZbwcO'>

        XMLHttpRequest 瀏覽器支持

        XMLHttpRequest Browser Support(XMLHttpRequest 瀏覽器支持)

          <tbody id='61QW1'></tbody>

      1. <i id='61QW1'><tr id='61QW1'><dt id='61QW1'><q id='61QW1'><span id='61QW1'><b id='61QW1'><form id='61QW1'><ins id='61QW1'></ins><ul id='61QW1'></ul><sub id='61QW1'></sub></form><legend id='61QW1'></legend><bdo id='61QW1'><pre id='61QW1'><center id='61QW1'></center></pre></bdo></b><th id='61QW1'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='61QW1'><tfoot id='61QW1'></tfoot><dl id='61QW1'><fieldset id='61QW1'></fieldset></dl></div>
          <bdo id='61QW1'></bdo><ul id='61QW1'></ul>

              <legend id='61QW1'><style id='61QW1'><dir id='61QW1'><q id='61QW1'></q></dir></style></legend>

                  <small id='61QW1'></small><noframes id='61QW1'>

                1. <tfoot id='61QW1'></tfoot>

                  本文介紹了XMLHttpRequest 瀏覽器支持的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  以下代碼段在 IE7 中不起作用是否有原因?

                  Is there a reason the following snippet would not work in IE7?

                  var http = new XMLHttpRequest();
                  var url = 'http://my_site.com/';
                  var obj = createJsonParamsObj();
                  http.open("POST", url, true);
                  http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
                  http.send(JSON.stringify(obj));
                  

                  從文檔看來, new XMLHttpRequest() 應該可以工作,但我有疑問,因為我無法測試它(僅在兼容模式下)所以也許我最好使用 new ActiveXObject.

                  From the documentation it seems like the new XMLHttpRequest() should work, but have doubts since I can't test it (only in compatibility mode) so perhaps I better use new ActiveXObject.

                  推薦答案

                  在 google 中搜索一下就能很好地解決您的基本問題

                  a small search in google would provide a good answer for your basic problem

                  /*
                     Provide the XMLHttpRequest constructor for Internet Explorer 5.x-6.x:
                     Other browsers (including Internet Explorer 7.x-9.x) do not redefine
                     XMLHttpRequest if it already exists.
                  
                     This example is based on findings at:
                     http://blogs.msdn.com/xmlteam/archive/2006/10/23/using-the-right-version-of-msxml-in-internet-explorer.aspx
                  */
                  if (typeof XMLHttpRequest === "undefined") {
                    XMLHttpRequest = function () {
                      try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); }
                      catch (e) {}
                      try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); }
                      catch (e) {}
                      try { return new ActiveXObject("Microsoft.XMLHTTP"); }
                      catch (e) {}
                      // Microsoft.XMLHTTP points to Msxml2.XMLHTTP and is redundant
                      throw new Error("This browser does not support XMLHttpRequest.");
                    };
                  }
                  

                  /** 
                   * Gets an XMLHttpRequest. For Internet Explorer 6, attempts to use MSXML 6.0,
                   * then falls back to MXSML 3.0.
                   * Returns null if the object could not be created. 
                   * @return {XMLHttpRequest or equivalent ActiveXObject} 
                   */ 
                  function getXHR() { 
                    if (window.XMLHttpRequest) {
                      // Chrome, Firefox, IE7+, Opera, Safari
                      return new XMLHttpRequest(); 
                    } 
                    // IE6
                    try { 
                      // The latest stable version. It has the best security, performance, 
                      // reliability, and W3C conformance. Ships with Vista, and available 
                      // with other OS's via downloads and updates. 
                      return new ActiveXObject('MSXML2.XMLHTTP.6.0');
                    } catch (e) { 
                      try { 
                        // The fallback.
                        return new ActiveXObject('MSXML2.XMLHTTP.3.0');
                      } catch (e) { 
                        alert('This browser is not AJAX enabled.'); 
                        return null;
                      } 
                    } 
                  }
                  

                  參考:http://en.wikipedia.org/wiki/XMLHttpRequest 和 http://www.webmasterworld.com/javascript/4027629.htm

                  這篇關于XMLHttpRequest 瀏覽器支持的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                    <bdo id='23idi'></bdo><ul id='23idi'></ul>

                  • <small id='23idi'></small><noframes id='23idi'>

                    <tfoot id='23idi'></tfoot>

                          <tbody id='23idi'></tbody>
                          • <i id='23idi'><tr id='23idi'><dt id='23idi'><q id='23idi'><span id='23idi'><b id='23idi'><form id='23idi'><ins id='23idi'></ins><ul id='23idi'></ul><sub id='23idi'></sub></form><legend id='23idi'></legend><bdo id='23idi'><pre id='23idi'><center id='23idi'></center></pre></bdo></b><th id='23idi'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='23idi'><tfoot id='23idi'></tfoot><dl id='23idi'><fieldset id='23idi'></fieldset></dl></div>
                            <legend id='23idi'><style id='23idi'><dir id='23idi'><q id='23idi'></q></dir></style></legend>

                            主站蜘蛛池模板: 日本精品视频在线观看 | 国产一级毛片精品完整视频版 | 国产伦精品一区二区三区照片91 | 免费v片| 日韩理论电影在线观看 | 9久久精品 | 国产精品久久久久久久久婷婷 | 欧美一区二区三区在线播放 | 日韩欧美高清 | 亚洲第一在线 | 日韩一区不卡 | 中文字幕一区二区三区不卡在线 | 亚洲中国字幕 | 欧美精品二区 | 99精品电影| 五月婷婷丁香 | 国产精品揄拍一区二区 | 国产福利在线视频 | 成人动漫一区二区 | 日本午夜精品一区二区三区 | 99久久精品国产一区二区三区 | 欧美精品一二三区 | 国产一区二区三区久久久久久久久 | 毛片一区二区三区 | 日韩成人免费 | 五月婷亚洲 | 毛片入口 | 亚洲视频中文字幕 | 国产成人在线视频免费观看 | 欧美11一13sex性hd | 九九九视频在线观看 | 91视频亚洲| 久久久久久久国产精品 | 涩涩视频在线观看免费 | 成人精品一区 | 午夜码电影 | 精品久久精品 | 国产激情视频在线 | 91亚洲精品在线观看 | 日韩欧美在线不卡 | 久久久久久久久99精品 |