The effect is as follows:
page A
After clicking the jump button
The corresponding value can be obtained on page B.
The code is as follows:
Page:
<! Doctype html> <html> <wead lang = EN> <meta charset = UTF-8> <script src = js/jquery-3.0.0.min.js> </script> <Script src = js/jquery. Params.js> </Script> <Title> A page </Title> <script> $ (function () {name = $ (#name) .text (); Age = $ (#Age) .text () ;text () ;text () ;text () ;text () ;text () ;text () ;text () ;text () ;text () ;text () ;text () ;text () ;text () ;text () ;text () ;text () ;text (); (#Age). $ (#btn) .on (click, function () {jump1 ();});}); Function jump1 () {url = b.html? name =+name+& age =+age; // Content window.location.href = url;} </script> </head> <body> <div id = name> tony </div> <div ID = Age> 23 </div> <Button id = btn> jump Turn </Button> </body> </html>Page B to jump to:
<! Doctype html> <html> <wead lang = EN> <meta charset = UTF-8> <script src = js/jquery-3.0.0.min.js> </script> <Script src = js/jquery. Params.js> </Script> <Title> B Page </Title> <Script> $ (Function () {Getdata1 ();}); Function Getdata1 () {var name = $ .qury.get (name); var age = $ .query.get (Age); $ (#name) .text (name); $ (#Age) .text (Age);/Script> </Head> <body> <div ID = name> </div> <div ID = Age> </DIV> </Body> </html>The above is the HTML page jump transfer parameter problem introduced by Xiaobian. I hope it will be helpful to everyone. If you have any questions, please leave me a message. Xiaobian will reply to everyone in time. Thank you very much for your support for the VEVB Wulin website!