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

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

        <tfoot id='cttND'></tfoot>

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

        JavaScript location.reload() 正在丢失发布数据

        JavaScript location.reload() is losing post data(JavaScript location.reload() 正在丢失发布数据)
          <tbody id='WK9ur'></tbody>

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

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

          • <tfoot id='WK9ur'></tfoot>
            • <legend id='WK9ur'><style id='WK9ur'><dir id='WK9ur'><q id='WK9ur'></q></dir></style></legend>

                1. 本文介绍了JavaScript location.reload() 正在丢失发布数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试使用 java 脚本重新加载页面,页面重新加载,但页面中的帖子数据未加载 帖子数据被删除,而页面重新加载,任何人都可以帮助我

                  I am trying to reload the page using java script the page reloads but the post data in the page is not loading the post data are deleted while the page reloads can any one help me with it

                  function currencychange(xxx) {
                      setTimeout('delay()', 2000);
                  }
                  function delay(){
                      location.reload();
                  }
                  

                  这是我用来在更改时重新加载页面的 javascript 代码

                  this is the javascript code which I am using to reload the page onchange

                  推荐答案

                  window.location.reload() 发出一个 GET,所以是的,POST 数据会丢失.

                  window.location.reload() issues a GET, so yes, the POST data will be lost.

                  您可以发布帖子的唯一方法是:

                  The only ways you can issue a post are either:

                  1. 使用 AJAX 回传数据,获取新页面,并用它替换你的 body 元素,或者

                  1. Use AJAX to post the data back, get the new page, and replace your body element with it, or

                  在页面上创建一个表单元素,其动作是当前的 window.location.href,并将您想要回传的数据作为隐藏输入放入其中.然后,在货币兑换调用 form.submit()

                  Create a form element on the page with the action being the current window.location.href, and place the data you want to post back inside it as hidden inputs. Then, on currency change call form.submit()

                  这篇关于JavaScript location.reload() 正在丢失发布数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Appending GET parameters to URL from lt;formgt; action(将 GET 参数附加到来自 lt;formgt; 的 URL行动)
                  Forcing quot;Save Asquot; dialog via jQuery GET(强制“另存为通过 jQuery GET 对话框)
                  PHP - get certain word from string(PHP - 从字符串中获取某个单词)
                  How to debug a get request in php using curl(如何使用 curl 在 php 中调试 get 请求)
                  get a # from a url in php(从 php 中的 url 获取 #)
                  PHP - include() file not working when variables are put in url?(PHP - 将变量放入 url 时,include() 文件不起作用?)

                  <tfoot id='B6Si0'></tfoot>
                    <tbody id='B6Si0'></tbody>

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

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

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