常用代码 <?php echo "<script>window.close();</script>"; //自动关闭当前页面 header("location:test.php"); //跳转到其他页面php