久久久久久久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>
                            主站蜘蛛池模板: 成人福利电影 | 免费特级黄毛片 | 精品欧美在线观看 | 国产精品视频 | 国产日韩欧美一区二区 | 超碰免费在线观看 | 狠狠狠干 | 免费视频一区二区三区在线观看 | 亚洲免费人成在线视频观看 | 9191成人精品久久 | 久久精品免费一区二区三 | 亚洲播放一区 | 国产精品日韩欧美一区二区三区 | 日本粉嫩一区二区三区视频 | 一级高清 | 国产精品日韩欧美一区二区三区 | 国产激情免费视频 | 色就干| 亚洲精品乱码久久久久久按摩观 | 久久国产精品亚洲 | 超碰97免费观看 | 免费在线h视频 | 精品欧美一区二区中文字幕视频 | 国产精品视频不卡 | 中文字幕人成乱码在线观看 | 欧美亚洲国语精品一区二区 | 成人国产一区二区三区精品麻豆 | 色综合色综合网色综合 | 久久精品国产精品青草 | 免费的av网站| 亚洲一区在线免费观看 | 免费黄色特级片 | 毛片大全 | 欧美一区二区三区日韩 | 在线免费黄色小视频 | 91亚洲国产成人久久精品网站 | 欧美一区二区三区四区视频 | 色免费视频 | 亚洲精品粉嫩美女一区 | 亚洲 精品 综合 精品 自拍 | 99精品久久久 |