标签:code http cat mis location 脚本 参数错误 href span
if(!$id){
exit("<script>alert(‘参数错误!‘);window.location.href=‘/‘</script>");
}
window.location.href=‘/‘ //跳转到首页
exit() 函数输出一条消息,并退出当前脚本。
该函数是 die() 函数的别名。
标签:code http cat mis location 脚本 参数错误 href span
原文地址:http://www.cnblogs.com/yangzailu/p/7586597.html