简体   繁体   中英

how to pass query string in a multipage html document

I have html document with 2 pages and am using html5, jquery and jquery mobile. I need to pass a value from onepage to another page. I am using url like test.html#page-b. How to pass query string through this url

You could do something like below:

     $(window).load(function() {
      window.location.href =  window.location.href?qs=XXX
    });

您需要在 URL 中的哈希之前有查询字符串。

test.html?query=string#hash

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM