PHP中:header("Location: http://jb51.net/");
php文件运行过程中如果碰到有header("Location:http://www.manongjc.com");这种语句,会直接跳转到另一个页面,但是这里的跳转并没有影响当前php文件的继续执行。也就是是说php header跳转之后,当前页面的脚本会继续执行。如果需要终止脚本运行,需要加exit()或者die()
js:window.location.href = "http://jb51.net/";
<a href=“javascript:history.back();”>返回</a>
<input class="btn btn6" οnclick="history.go(-1)" value="返回" type="button">
var mytime = setInterval('daoshu()',1000):定时执行daoshu()函数,不需要的时候,请使用clearInterval(mytime),清除
mate标签:<meta http-equiv="refresh" content="2; url=http://jb51.net/"> 2为停留的时间,自动刷新并指向新的页面
mate http-equiv:相当于http头信息,equiv等于的意思, http-equiv=‘参数’ content=“参数内容”
<meta http-equiv="expires" content="Wed, 20 Jun 2007 22:33:00 GMT">:expires设置过期
<meta http-equiv="Pragma" content="no-cache">:Pragma的意思编译指示
<meta http-equiv="content-Type" content="text/html; charset=gb2312"> :字符集设置
PHP中header('Content-type:text/html;charset=utf-8'):字符集设置
<a class="link-del" href="javascript:if(confirm('确定要删除吗?'))window.location.href='/index.php?p=back&c=cate
&a=del&cate_id={$v.cate_id}'" >删除</a>