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

<legend id='7S5Tf'><style id='7S5Tf'><dir id='7S5Tf'><q id='7S5Tf'></q></dir></style></legend>

  • <small id='7S5Tf'></small><noframes id='7S5Tf'>

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

      <bdo id='7S5Tf'></bdo><ul id='7S5Tf'></ul>

      <tfoot id='7S5Tf'></tfoot>

        responseXML 始終為空

        responseXML always null(responseXML 始終為空)

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

            <small id='0UP1h'></small><noframes id='0UP1h'>

              1. <tfoot id='0UP1h'></tfoot>
                  本文介紹了responseXML 始終為空的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我用的是firefox 3.6.10,用firebug來調試

                  Im using firefox 3.6.10, and firebug to debug

                  所以,這是我的代碼:

                  var xmlhttp = new XMLHttpRequest();
                  xmlhttp.open("GET", url,false);
                  xmlhttp.setRequestHeader('Content-Type',  'text/xml');
                  xmlhttp.send(null);
                  alert(xmlhttp.responseXML);
                  

                  responseXML 始終為空,我已經在來自不同域的多個 URL 上嘗試過它.我也嘗試過異步,結果是一樣的.responseText 總是正確返回,沒有問題.

                  responseXML is always null, and i've tried it on several URLs from different domains. I have also tried it asynchronously, it's the same result. The responseText is always properly returned, no problems with it.

                  我的目標是獲得 responseXML.documentElement.

                  感謝您的幫助.

                  編輯-----------
                  此 javascript 代碼是從 Greasemonkey 用戶腳本執行的,我將其設置為與請求的 url 相同的來源.我也嘗試從螢火控制臺執行,再次確保原產地政策.兩者都有相同的錯誤.
                  討厭javascript.

                  EDIT-----------
                  This javascript code was executed from a Greasemonkey userscript, i made surte its the same origin as the requested url. Also i tried executing from firebug console, again ensuring the origin policy. Same error on both.
                  Gotta hate javascript.

                  推薦答案

                  我敢打賭你違反了同源政策.

                  I bet you are violating the same origin policy.

                  對于 XHR,您必須具有相同的協議、域、端口等.因此,如果您在 localhost:8080/app 上運行應用程序,則不能 ajax 到 www.cnn.com.

                  For XHRs, you must have the same protocol, domain, port, etc. So if you are running an app on localhost:8080/app, you CANNOT ajax to www.cnn.com.

                  不同的瀏覽器有不同的處理方式;我看到FF按照你的描述做了,就是請求看起來正常返回但是沒有數據...

                  Different browsers handle this differently; I have seen FF do what you describe, which is the request appears to return normally but there is no data...

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

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

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

                    • <legend id='xpe0Q'><style id='xpe0Q'><dir id='xpe0Q'><q id='xpe0Q'></q></dir></style></legend>

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

                          <tbody id='xpe0Q'></tbody>

                            <tfoot id='xpe0Q'></tfoot>
                            主站蜘蛛池模板: 成在线人视频免费视频 | 青娱乐av | 成人在线一区二区三区 | 欧美成人免费在线视频 | 色桃网| 欧美va大片 | 日韩欧美福利视频 | 中文字幕视频在线观看 | av毛片 | 亚洲精品久久久久久久久久久 | 黄色网址在线免费播放 | 黄色毛片大全 | 国产一区二区三区久久久久久久久 | 精品国产乱码久久久久久图片 | 福利国产| 美国黄色一级片 | 国产在线一区二区 | 成人国产在线观看 | 超碰97免费在线 | 自拍偷拍第一页 | 亚洲狠狠爱 | 台湾佬伊人 | 性色综合| 免费观看一级特黄欧美大片 | 午夜一级做a爰片久久毛片 精品综合 | 国产一区二区免费电影 | 涩涩视频在线看 | 日韩成人高清在线 | 国产精品视频网 | 国产精品亚洲视频 | 欧美 日韩 国产 成人 | www.4虎影院| 日韩免费在线观看视频 | 国产成人精品一区二区三区在线 | av黄色在线| 中文字幕视频在线观看免费 | 在线综合视频 | 国产不卡在线 | 国产欧美精品区一区二区三区 | 国产欧美精品 | 青青草网 |