時(shí)間:2015-06-28 00:00:00 來(lái)源:IT貓撲網(wǎng) 作者:網(wǎng)管聯(lián)盟 我要評(píng)論(0)
刷新的實(shí)現(xiàn)方法:
=========================================== .net
//第1:
/*-- 內(nèi)置跳轉(zhuǎn) ----*/
Response.Redirect( Request.Url.ToString( ) );
//第2:
/*----內(nèi)置 html ----*/
Response.AddHeader( "Refresh","0" );
//將指定的標(biāo)頭和值添加到此響應(yīng)的 HTTP 標(biāo)頭。
//第3:
Response.Write( "
window.location.reload( );
< /script>"
);
//第4:
/*-- 輸出js代碼 跳轉(zhuǎn) ----*/
Response.Write( "
< script language=javascript>
window.location.href=document.URL;
< /script>
");
/*第5: ----js ----*/
window.location.reload( );
//第6:
< meta http-equiv="refresh" content="300;?? url=target.html">? 用window.location.href
//7
< script language=''javascript''>? window.navigate("本頁(yè)面url");? < /script>
===================================================================
定時(shí)刷新:
1,
< script>setTimeout("location.href='url'",2000)< /script> 說(shuō)明:url是要刷新的頁(yè)面URL地址
2000是等待時(shí)間=2秒,
2,
< meta name="Refresh" content="n;url"> 說(shuō)明:
n is the number of seconds to wait before loading the specified URL.
url is an absolute URL to be loaded.
n,是等待的時(shí)間,以秒為單位
url是要刷新的頁(yè)面URL地址
3,
< %response.redirect url%> 說(shuō)明:一般用一個(gè)url參數(shù)或者表單傳值判斷是否發(fā)生某個(gè)操作(這個(gè) 我還沒(méi)清楚。沒(méi)去試過(guò))
==================================================================
我的意見(jiàn)
1.??
相關(guān)閱讀
熱門(mén)文章
誅仙3飛升任務(wù)怎么做-誅仙3飛升任務(wù)流程最新2022
鐘離圣遺物推薦-原神鐘離圣遺物詞條
解決方法:應(yīng)用程序“DEFAULT WEB SITE”中的服務(wù)器錯(cuò)誤
使用aspnet_regiis.exe 重新注冊(cè).NET Framework
人氣排行 誅仙3飛升任務(wù)怎么做-誅仙3飛升任務(wù)流程最新2022 asp.net表單提交方法GET\POST 在ASP.NET中如何判斷用戶IE瀏覽器的版本 Asp.net中messagebox的實(shí)現(xiàn)方法 Asp.net中的web.config配置 在ASP.NET MVC中實(shí)現(xiàn)大文件異步上傳 asp.net獲取URL和IP地址 FileUpload上傳多文件出現(xiàn)錯(cuò)誤的解決方法