効果は次のとおりです。
ページa
ジャンプボタンをクリックした後
対応する値は、BページBで取得できます。
コードは次のとおりです。
ページ:
<!doctype html> <html> <wead lang = en> <utf-8> <scrc = js/jquery-3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0. params.js> </script> <title> aページ</title> <script> $(function(){name = $(#name).text(); age = $(#age).text(); text(); text(); text(); text(); text(); text(); text(); text(); text(); text(); text(); text( ); text(); text();(#btn); ){url = b.html? /div> <div id = age> 23 </div> <button id = btn>ジャンプターン</button> </body> </html>ジャンプするページB:
<!doctype html> <html> <wead lang = en> <utf-8> <scrc = js/jquery-3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0. params.js> </script> <title> b page </title> <script> $(function(){getData1();}); var age = $ .query.get(age); </div> <div id = age> </div> </body> </html>上記は、Xiaobianによって導入されたHTMLページのパラメーターの問題です。 VEVBウーリンのウェブサイトへのご支援ありがとうございます!