JS的变量的值怎么传递给PHP的变量?时间:2023-03-09 03:13:42 get: <script> name="xxx"; window.location='xxx.php? name='+name; post: <script> name="xxx"; </script> <form name=form1 method=post onsubmit="this.name.value=name"> <input type=hidden name="name"> </form>