ASP常用代码

服务器跳转

Response.Redirect("http://www.abc.com")
Response.End

客户端跳转

<script language="javascript" type="text/javascript">
window.location="http://www.abc.com";
</script>

页面直接跳转

<meta http_equiv="refresh" content="3:url=http://www.abc.com">
//3:等待跳转的时间(单位:秒)

VB跳转

<script language="VBScript">
location.href="http://www.abc.com"
</script>

ASP执行耗时代码

Startime = timer()  //为开始时间,放在页面顶部
Endtime = timer()   //为结束时间,放在页面底部
FormatNumber((Endtime-Startime)*100,3)  //为结果,格式化数字,3为保留小数后3位 
发布了25 篇原创文章 · 获赞 19 · 访问量 10万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章