当前位置:Gxlcms > PHP教程 > PHP重定向的3种方式_PHP教程

PHP重定向的3种方式_PHP教程

时间:2021-07-01 10:21:17 帮助过:8人阅读

代码如下:
//1
header("Location: index.php");

//2
echo '
window.location = "index.php";
';

//3
echo "";

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/326747.htmlTechArticle 代码如下:

//1 header("Location: index.php"); //2 echo 'scrīpt type="text/javascript" window.location = "index.php"; /scrīpt'; //3 echo "META HTTP-EQUIV="Refresh"...

人气教程排行