Python语言技术文档

微信小程序技术文档

php语言技术文档

jsp语言技术文档

asp语言技术文档

C#/.NET语言技术文档

html5/css技术文档

javascript

点击排行

您现在的位置:首页 > 技术文档 > asp技巧

用asp如何实现防止网页频繁刷新?

来源:中文源码网    浏览:300 次    日期:2024-04-19 23:47:47
【下载文档:  用asp如何实现防止网页频繁刷新?.txt 】


用Asp如何实现防止网页频繁刷新?
<% dim RefreshIntervalTime RefreshIntervalTime = 3 '防止刷新的时间秒数,0表示不防止 If Not IsEmpty(Session(“visit“)) and isnumeric(Session(“visit“)) and int(RefreshIntervalTime) > 0 Then if (timer()-int(Session(“visit“)))*1000 < RefreshIntervalTime * 1000 then Response.write (““) Response.write (“刷新过快,请稍候“) Session(“visit“) = timer() Response.end end if End If Session(“visit“) = timer() %> Asp如何防止网页频繁刷新-wwww.zhangpeng.com.cn Asp如何防止网页频繁刷新-www.zhangpeng.com.cn

相关内容