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

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

  1. <small id='kVarJ'></small><noframes id='kVarJ'>

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

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

      從 JavaScript Online 訪問客戶端的“本地主機(jī)"

      Accessing Client#39;s #39;localhost#39; from JavaScript Online(從 JavaScript Online 訪問客戶端的“本地主機(jī))

        <tfoot id='lmi3K'></tfoot><legend id='lmi3K'><style id='lmi3K'><dir id='lmi3K'><q id='lmi3K'></q></dir></style></legend>

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

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

                <bdo id='lmi3K'></bdo><ul id='lmi3K'></ul>
                本文介紹了從 JavaScript Online 訪問客戶端的“本地主機(jī)"的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                這就是我想要做的.

                1. 我制作了一些包含 JavaScript 代碼的 .html 頁面,并將它們托管在 Yahoo 服務(wù)器上.

                2. 現(xiàn)在,當(dāng)具有特定瀏覽器的客戶端查看這些網(wǎng)頁時(shí),JavaScript 代碼使用 XMLHTTPRequest 在 h1ttp://localhost:8080/myservlet/servlet1 建立連接以讀取一些數(shù)據(jù).

                3. 我知道,我想連接到客戶端計(jì)算機(jī)上運(yùn)行的 Web 服務(wù)器,如果客戶端有一個(gè),即我在我的 xmlHTTPRequest 中使用 localhost.

                但是,即使客戶端在端口 8080 上運(yùn)行 Web 服務(wù)器,這也不起作用.在客戶端的計(jì)算機(jī)上,我可以訪問 http://localhost:8080/mysevlet/servlet1 并且 servlet 是運(yùn)行良好,但通過 Yahoo 服務(wù)器上托管的 .html 頁面無法正常工作.

                我在這里做錯(cuò)了什么?

                解決方案

                跨站腳本

                一個(gè)>

                您無法訪問不在您域中的內(nèi)容,除非它是返回 XML 或 JSONP 的 Web 服務(wù)

                this is what I am trying to do.

                1. I have made a few .html pages with JavaScript code in it and hosted them on a Yahoo server.

                2. Now when a client with a certain browser views these web pages, the JavaScript code uses XMLHTTPRequest to make a connection at h1ttp://localhost:8080/myservlet/servlet1 to read some data.

                3. I know, I want to connect to the web server running on the client's computer if the client has one i.e. I am using localhost in my xmlHTTPRequest.

                But this is not working even when a client has a web server running on port 8080. On the client's computer I can access http://localhost:8080/mysevlet/servlet1 and the servlet is running fine, but through the .html page hosted on Yahoo server it does not work.

                Anything that I am doing wrong here?

                解決方案

                Cross-site Scripting

                You cannot access what is not on your domain, unless it is a Web Service returning XML or JSONP

                這篇關(guān)于從 JavaScript Online 訪問客戶端的“本地主機(jī)"的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                相關(guān)文檔推薦

                Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調(diào)用 abort (jQuery) 之后,瀏覽器也會(huì)等待 ajax 調(diào)用完成)
                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標(biāo)頭) - IT屋-程序員軟件開發(fā)技術(shù)分
                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 部分內(nèi)容)
                <legend id='c1hz4'><style id='c1hz4'><dir id='c1hz4'><q id='c1hz4'></q></dir></style></legend><tfoot id='c1hz4'></tfoot>

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

                        <bdo id='c1hz4'></bdo><ul id='c1hz4'></ul>
                          <tbody id='c1hz4'></tbody>
                        主站蜘蛛池模板: 男人天堂色 | 久久区二区 | 成人精品免费视频 | 成人免费福利视频 | 国产一区二区免费电影 | 黑人巨大精品欧美一区二区免费 | 亚洲女人天堂成人av在线 | 狠狠干网站 | 国产1区2区3区 | 91精品国产高清久久久久久久久 | 欧美1区 | 91av亚洲| 在线国产一区二区三区 | 国产片侵犯亲女视频播放 | 欧美黑人激情 | 国产一区二区三区免费观看视频 | 国产一级片久久久 | 欧美狠狠操 | 久久精品无码一区二区三区 | 538在线精品 | 日本手机看片 | 亚洲精品一区二区 | 精品一区二区三区在线观看 | 亚洲一区二区av | 中文字幕国产精品 | 欧美 视频 | 欧洲一级毛片 | 国产精品av久久久久久久久久 | 精品久久久久久久久久久久久久久久久 | 国产九九精品视频 | 久久久久亚洲精品国产 | 欧美精品一区二区三区在线播放 | 欧美一区二区三区 | av片免费| 狠狠做深爱婷婷综合一区 | 天天成人综合网 | 国产日产欧产精品精品推荐蛮挑 | 欧美三级免费观看 | 高清久久| 自拍偷拍亚洲欧美 | 又黑又粗又长的欧美一区 |