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

  • <tfoot id='SLIB4'></tfoot>

    <legend id='SLIB4'><style id='SLIB4'><dir id='SLIB4'><q id='SLIB4'></q></dir></style></legend>
      <bdo id='SLIB4'></bdo><ul id='SLIB4'></ul>
  • <small id='SLIB4'></small><noframes id='SLIB4'>

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

      1. 來自 XMLHttpRequest 的空 responseText

        Empty responseText from XMLHttpRequest(來自 XMLHttpRequest 的空 responseText)
        <tfoot id='GFpcM'></tfoot>

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

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

              <legend id='GFpcM'><style id='GFpcM'><dir id='GFpcM'><q id='GFpcM'></q></dir></style></legend>

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

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

                  問題描述

                  我寫了一個 XMLHttpRequest,它運行良好但返回一個空的 responseText.

                  I have written an XMLHttpRequest which runs fine but returns an empty responseText.

                  javascript如下:

                  The javascript is as follows:

                    var anUrl = "http://api.xxx.com/rates/csv/rates.txt";
                    var myRequest = new XMLHttpRequest();
                  
                    callAjax(anUrl);
                  
                    function callAjax(url) {
                       myRequest.open("GET", url, true);
                       myRequest.onreadystatechange = responseAjax;
                                   myRequest.setRequestHeader("Cache-Control", "no-cache");
                       myRequest.send(null);
                    }
                  
                    function responseAjax() {
                       if(myRequest.readyState == 4) {
                          if(myRequest.status == 200) {
                              result = myRequest.responseText;
                              alert(result);
                              alert("we made it");
                          } else {
                              alert( " An error has occurred: " + myRequest.statusText);
                          }
                       }
                    }
                  

                  代碼運行良好.我可以走過去,我得到了 readyState == 4 和一個狀態 == 200 但 responseText 總是空白.

                  The code runs fine. I can walk through and I get the readyState == 4 and a status == 200 but the responseText is always blank.

                  我收到錯誤調度的日志錯誤(在 Safari 調試中):getProperties,我似乎無法找到參考.

                  I am getting a log error (in Safari debug) of Error dispatching: getProperties which I cannot seem to find reference to.

                  我已經在本地和遠程服務器上的 Safari 和 Firefox 中運行了代碼.

                  I have run the code in Safari and Firefox both locally and on a remote server.

                  將 URL 放入瀏覽器時將返回字符串并給出狀態碼 200.

                  The URL when put into a browser will return the string and give a status code of 200.

                  我在一個運行良好的 Mac Widget 中為相同的 URL 編寫了類似的代碼,但在瀏覽器中的相同代碼永遠不會返回結果.

                  I wrote similar code to the same URL in a Mac Widget which runs fine, but the same code in a browser never returns a result.

                  推薦答案

                  http://api.xxx.com/ 是否屬于您的域?如果沒有,您將被同源政策阻止.

                  Is http://api.xxx.com/ part of your domain? If not, you are being blocked by the same origin policy.

                  您可能需要查看以下 Stack Overflow 帖子,了解一些可能的解決方法:

                  You may want to check out the following Stack Overflow post for a few possible workarounds:

                  • 規避同源策略的方法

                  這篇關于來自 XMLHttpRequest 的空 responseText的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 部分內容)

                    • <small id='Jz3nZ'></small><noframes id='Jz3nZ'>

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

                      • <legend id='Jz3nZ'><style id='Jz3nZ'><dir id='Jz3nZ'><q id='Jz3nZ'></q></dir></style></legend>
                        • <bdo id='Jz3nZ'></bdo><ul id='Jz3nZ'></ul>

                              <tbody id='Jz3nZ'></tbody>
                            主站蜘蛛池模板: 久久人人爽人人爽人人片av免费 | 一区中文 | 91久久久久久久久 | 国产精品国产三级国产aⅴ原创 | 亚洲精品中文字幕在线观看 | 久久机热 | 91高清视频在线观看 | 91国在线高清视频 | 日韩国产中文字幕 | 日本一区二区在线视频 | 精品一区二区三区免费视频 | 韩日av在线| 国产九九九 | 久久久激情 | 色综合久 | 日韩中文字幕一区 | 天天摸天天看 | 成人精品一区 | 国产成人99 | 婷婷中文字幕 | 欧美精品1区2区3区 精品国产欧美一区二区 | 亚洲欧美日韩中文字幕一区二区三区 | 国产wwwcom | 欧美啪啪 | 色吊丝2288sds中文字幕 | 亚洲视频在线一区 | 97免费在线视频 | 国产区在线观看 | 久久久蜜桃 | 男女羞羞的网站 | www.com久久久 | 色婷婷综合久久久中文字幕 | 亚洲午夜精品久久久久久app | 亚洲人人 | 欧美视频精品 | 日韩一区二区在线播放 | 日日日日日日bbbbb视频 | 91玖玖 | 国内精品久久久久久久影视简单 | 久久大| 国产午夜av片 |