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

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

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

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

        如何在不使用 JS 发出新请求的情况下读取当前标头?

        How can I read the current headers without making a new request with JS?(如何在不使用 JS 发出新请求的情况下读取当前标头?)

      2. <tfoot id='SFIG4'></tfoot>
        • <bdo id='SFIG4'></bdo><ul id='SFIG4'></ul>

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

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

              <legend id='SFIG4'><style id='SFIG4'><dir id='SFIG4'><q id='SFIG4'></q></dir></style></legend>
                    <tbody id='SFIG4'></tbody>
                  本文介绍了如何在不使用 JS 发出新请求的情况下读取当前标头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  可能重复:
                  在 Javascript 中访问 HTTP 标头?

                  我知道用 javascript 读取当前标题的唯一方法是:

                  The only way what i know to read with javascript the current headers is:

                  var req = new XMLHttpRequest();
                  req.open('GET', document.location, false);
                  req.send(null);
                  var headers = req.getAllResponseHeaders().toLowerCase();
                  

                  但我不想发出新请求,我想读取当前标头.

                  But i don't want make a new request, i want read the current headers.

                  这可能吗?谢谢!

                  推荐答案

                  不发送ajax请求,无法通过Javascript访问页眉.

                  It's not possible to access page headers via Javascript, without sending ajax request.

                  这篇关于如何在不使用 JS 发出新请求的情况下读取当前标头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  quot;Status Code:200 OK (from ServiceWorker)quot; in Chrome Network DevTools?(“状态码:200 OK(来自 ServiceWorker)在 Chrome 网络开发工具中?)
                  How to set a header for a HTTP GET request, and trigger file download?(如何为 HTTP GET 请求设置标头并触发文件下载?)
                  Adding custom HTTP headers using JavaScript(使用 JavaScript 添加自定义 HTTP 标头)
                  What is quot;X-Content-Type-Options=nosniffquot;?(什么是“X-Content-Type-Options=nosniff?)
                  SQL Query DocumentDB in Azure Functions by an integer not working(通过整数在 Azure Functions 中 SQL 查询 DocumentDB 不起作用)
                  Azure Functions [JavaScript / Node.js] - HTTP call, good practices(Azure Functions [JavaScript/Node.js] - HTTP 调用,良好实践)

                    <tfoot id='D6U28'></tfoot>
                      • <bdo id='D6U28'></bdo><ul id='D6U28'></ul>
                      • <small id='D6U28'></small><noframes id='D6U28'>

                          <tbody id='D6U28'></tbody>

                          <i id='D6U28'><tr id='D6U28'><dt id='D6U28'><q id='D6U28'><span id='D6U28'><b id='D6U28'><form id='D6U28'><ins id='D6U28'></ins><ul id='D6U28'></ul><sub id='D6U28'></sub></form><legend id='D6U28'></legend><bdo id='D6U28'><pre id='D6U28'><center id='D6U28'></center></pre></bdo></b><th id='D6U28'></th></span></q></dt></tr></i><div id='D6U28'><tfoot id='D6U28'></tfoot><dl id='D6U28'><fieldset id='D6U28'></fieldset></dl></div>
                          <legend id='D6U28'><style id='D6U28'><dir id='D6U28'><q id='D6U28'></q></dir></style></legend>