如果你对该文章中的内容有疑问/不解,可以点击此处链接提问
要注明问题和此文章链接地址 点击此处跳转
class { public function redirect($msg, $url=null) { if(empty($url)){ echo "<script>alert('$msg')</script>"; echo "<script>history.back()</script>";die; }else{ echo "<script>alert('$msg')</script>"; echo "<script>location.href ='$url'</script>";die; } } }