Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用重定向到页面star.php
window.location.href = 'start.php';
在我重定向之前,我只想发送(发布) var userid到 start.php
var userid
我该怎么办?
你不能这样发帖。而是通过 url 传递它,例如:
window.location.href = 'start.php?userid='+userid;
您将获得$_GET['userid']start.php 中的值
$_GET['userid']