javascript的history.go(-1)

来源:互联网 发布:mac升级bootcamp 6.0 编辑:程序博客网 时间:2024/05/17 19:19

javascript的history.go(-1)

 

echo '<script language="javascript">{alert("留言不能为空!");history.go(-1);}</script>';}

 

echo '<script language="javascript">{alert("留言不能为空!");return true;}</script>';}

 

这是不刷新页面的方式