放在header里就可以定时刷新
<meta http-equiv="refresh" content="2">
<?php
echo '<meta http-equiv="refresh" content="0"';
echo "<script>alert('操作成功');location.href='".$_SERVER["HTTP_REFERER"]."';</script>";
?>
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号