日期:2011-08-01  浏览次数:20634 次


echo "<script language=\"javascript\">alert('登录成功,欢迎你$this->usename');location.href = 'javascript:history.go(-2);'</script>";
history.back();是跳回前一次浏览器显示的页面,如果你是用表单提交触发的跳转操作,你要用history.go(-2);即返回上上次显示的页面,因为你提交表单时肯定重新加载了页面。
本文链接http://www.cxybl.com/html/wlbc/Php/20130607/38419.html