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

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

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

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

    1. <tfoot id='MPcfX'></tfoot>
        <bdo id='MPcfX'></bdo><ul id='MPcfX'></ul>

    2. 區(qū)分 AJAX 調(diào)用/瀏覽器請(qǐng)求

      Differentiating Between an AJAX Call / Browser Request(區(qū)分 AJAX 調(diào)用/瀏覽器請(qǐng)求)

      <legend id='8WR2I'><style id='8WR2I'><dir id='8WR2I'><q id='8WR2I'></q></dir></style></legend>

          <tbody id='8WR2I'></tbody>
        <tfoot id='8WR2I'></tfoot>

            <bdo id='8WR2I'></bdo><ul id='8WR2I'></ul>
          • <small id='8WR2I'></small><noframes id='8WR2I'>

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

                本文介紹了區(qū)分 AJAX 調(diào)用/瀏覽器請(qǐng)求的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                問(wèn)題描述

                HTTP 請(qǐng)求的標(biāo)頭中是否有任何內(nèi)容可以讓我區(qū)分 AJAX 調(diào)用和來(lái)自給定客戶(hù)端的直接瀏覽器請(qǐng)求?無(wú)論如何,用戶(hù)代理字符串通常相同嗎?

                Is there anything in the header of an HTTP request that would allow me to differentiate between an AJAX call and a direct browser request from a given client? Are the user agent strings usually the same regardless?

                推薦答案

                如果您使用 Prototype、jQuery、Mootools 或 YUI,您應(yīng)該找到一個(gè) X-Requested-With:XMLHttpRequest 標(biāo)頭給你的伎倆.應(yīng)該可以在其他庫(kù)中插入您喜歡的任何標(biāo)題.

                If you use Prototype, jQuery, Mootools or YUI you should find a X-Requested-With:XMLHttpRequest header which will do the trick for you. It should be possible to insert whatever header you like with other libraries.

                在最低級(jí)別,給定 XMLHttpRequest 或 XMLHTTP 對(duì)象,您可以使用setRequestHeader 方法如下:

                At the lowest level, given a XMLHttpRequest or XMLHTTP object, you can set this header with the setRequestHeader method as follows:

                xmlHttpRequest.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
                

                這篇關(guān)于區(qū)分 AJAX 調(diào)用/瀏覽器請(qǐng)求的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(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 無(wú)法加載,請(qǐng)求的資源上不存在“Access-Control-Allow-Origin標(biāo)頭) - IT屋-程序員軟件開(kāi)發(fā)技術(shù)分
                Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請(qǐng)求是否有可能不遵循重定向 (301 302))
                NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內(nèi)容)
              • <i id='APAQG'><tr id='APAQG'><dt id='APAQG'><q id='APAQG'><span id='APAQG'><b id='APAQG'><form id='APAQG'><ins id='APAQG'></ins><ul id='APAQG'></ul><sub id='APAQG'></sub></form><legend id='APAQG'></legend><bdo id='APAQG'><pre id='APAQG'><center id='APAQG'></center></pre></bdo></b><th id='APAQG'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='APAQG'><tfoot id='APAQG'></tfoot><dl id='APAQG'><fieldset id='APAQG'></fieldset></dl></div>

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

                      • <tfoot id='APAQG'></tfoot>
                          主站蜘蛛池模板: 日韩欧美中文字幕在线观看 | 91国内精品久久 | 国产成人综合av | 一区二区三区四区在线 | 日本电影免费完整观看 | 男人天堂久久 | 91中文字幕在线观看 | 亚洲婷婷六月天 | 亚洲最大看片网站 | 精品国产一区二区三区在线观看 | 欧美精品一区二区三区蜜桃视频 | 久久6| 中文精品视频 | 一级a爱片性色毛片免费 | 久久精品国产清自在天天线 | 日日夜夜操天天干 | 日日干日日色 | 日韩精品一区二 | 成人在线播放 | 亚洲成人av一区二区 | 欧美精品久久久久 | 亚洲精品视频在线播放 | 91pron在线| 在线观看av免费 | 中文字字幕在线中文乱码范文 | 亚洲成人av在线播放 | a级网站| 亚洲日韩中文字幕一区 | 欧美精品二区 | 在线观看特色大片免费网站 | 亚洲欧美中文字幕在线观看 | 一本岛道一二三不卡区 | 欧美精品一区二区三区在线播放 | 99久久久久久 | 中文字幕在线欧美 | 欧美亚洲网站 | 一本色道久久综合亚洲精品高清 | 成人精品一区二区三区中文字幕 | 国产成人精品久久二区二区 | a在线视频| 日韩综合在线 |