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

<tfoot id='O0yPN'></tfoot>

    • <bdo id='O0yPN'></bdo><ul id='O0yPN'></ul>

    1. <legend id='O0yPN'><style id='O0yPN'><dir id='O0yPN'><q id='O0yPN'></q></dir></style></legend>
    2. <small id='O0yPN'></small><noframes id='O0yPN'>

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

        跨域 Ajax 請求在 Opera 和 IE9 中不起作用?

        Cross-origin Ajax requests don#39;t work in Opera and IE9?(跨域 Ajax 請求在 Opera 和 IE9 中不起作用?)

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

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

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

                    <tbody id='q4RJc'></tbody>
                  <tfoot id='q4RJc'></tfoot>
                  本文介紹了跨域 Ajax 請求在 Opera 和 IE9 中不起作用?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在使用這個頁面 - http://ecmazing.com/cors.html - 制作對此資源的跨域 Ajax 請求:http://hacheck.tel.fer.hr/xml.pl

                  它適用于 Chrome、Safari 和 Firefox,但不適用于 IE9 和 Opera.

                  代碼:

                  var pdata = {'textarea': 'test'};$.post('http://hacheck.tel.fer.hr/xml.pl', pdata, function(data, status, xhr) {output.value = xhr.responseText;});

                  (預期結果是一個 XML 代碼字符串.)

                  自己看看: http://ecmazing.com/cors.html

                  在 IE9 和 Opera 中,XHR 對象的 error 處理程序執行并傳入此錯誤對象:

                  <代碼>{就緒狀態:4,狀態:0,狀態文本:'錯誤'}

                  如您所見,這個錯誤對象并沒有透露太多信息.

                  如何讓它在 IE9 和 Opera 中運行?

                  解決方案

                  查看 cors at whencaniuse 的條目.p>

                  對于 Internet Explorer,CORS 是在 IE8 和 IE9 中使用 XDomainRequest 對象支持",因此您需要使用備用對象來使用它.

                  Opera 根本不支持它.

                  如果你在 Opera 中需要跨域 Ajax,那就使用 JSON-P.

                  I am using this page - http://ecmazing.com/cors.html - to make a cross-origin Ajax request to this resource: http://hacheck.tel.fer.hr/xml.pl

                  It works in Chrome, Safari and Firefox, but doesn't in IE9 and Opera.

                  The code:

                  var pdata = {'textarea': 'test'};
                  
                  $.post('http://hacheck.tel.fer.hr/xml.pl', pdata, function(data, status, xhr) {
                      output.value = xhr.responseText;
                  });
                  

                  (The expected result is an XML code string.)

                  See for yourself: http://ecmazing.com/cors.html

                  In IE9 and Opera, the error handler of the XHR object executes and this error object is passed in:

                  {
                      readyState: 4,
                      status: 0,
                      statusText: 'error'
                  }
                  

                  As you can see, this error object doesn't reveal much information.

                  How can I make it work in IE9 and Opera?

                  解決方案

                  See the entry for cors at whencaniuse.

                  For Internet Explorer CORS is "Supported somewhat in IE8 and IE9 using the XDomainRequest object", so you need to use an alternate object to use it.

                  Opera simply doesn't support it.

                  If you need cross-domain Ajax in Opera, then use JSON-P.

                  這篇關于跨域 Ajax 請求在 Opera 和 IE9 中不起作用?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 部分內容)
                    <tfoot id='GfKco'></tfoot>

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

                          <tbody id='GfKco'></tbody>
                            <bdo id='GfKco'></bdo><ul id='GfKco'></ul>
                            <legend id='GfKco'><style id='GfKco'><dir id='GfKco'><q id='GfKco'></q></dir></style></legend>
                            主站蜘蛛池模板: 日韩av免费在线观看 | av大片 | 久久一区视频 | 米奇7777狠狠狠狠视频 | 国产精品国产a级 | 亚洲一区二区高清 | 国外成人在线视频 | 四虎影院在线免费观看 | 日韩av一区在线观看 | 欧美成人一区二区 | 日韩欧美亚洲 | 婷婷丁香在线视频 | 久久久激情 | 天天色天天射天天干 | 高清视频一区二区三区 | 久久久.com| 亚洲欧美国产毛片在线 | 成人在线视频免费观看 | 亚洲精久久久 | 亚洲一区二区三区免费在线观看 | 阿v视频在线观看 | 国产精品国产精品国产专区不卡 | 最近最新中文字幕 | 伊人精品视频 | 日本在线播放 | 午夜精品福利视频 | 日韩精品在线一区 | 国产美女黄色片 | 午夜精品一区二区三区三上悠亚 | 国产成人综合一区二区三区 | 色婷婷综合久久久久中文一区二区 | 亚洲日本三级 | 999精品在线观看 | 久久精品在线播放 | 999久久久| 欧美成人aaa级毛片在线视频 | 国产一区久久 | 久久久久国产精品一区二区 | 成人国产精品久久 | 久久久久国产 | 欧美一区在线视频 |