多くの人がまだASPを使用して、頻繁にリフレッシュするWebページを防ぐ方法を理解していないと思います。次の記事では、頻繁にリフレッシュするWebページを防ぐために、ASPの実装方法を見てみましょう。興味のある友達、それを参照してください。
<%
Dim Lequrevaltime
lebreedintervaltime = 3 'リフレッシュを防ぐための秒数、0は防止しないことを意味します
ISEMPTY(SESSION( "Visit"))とiSNumeric(session( "Visit"))およびint(lefficeintervaltime)> 0 then then
if(timer() - int(session( "visit")) * 1000 <refrespedintervaltime * 1000 then
Response.Write( "<Meta http-equiv =" "reffress" content = ""&lefrefalvaltime& "" "" /> ")
Response.write( "更新が速すぎる、待ってください"))
session( "Visit")= Timer()
Response.End
ifを終了します
ifを終了します
session( "Visit")= Timer()
%> <!doctype html public“ - // w3c // dtd html 4.01 transitional // en”>
<html>
<head>
<title> asphow webww.zhangpeng.com.cn </title>を頻繁にリフレッシュすることを防ぐためのasphow
<meta http-equiv = "content-type" content = "text/html; charset = gb2312">
<link rel = "styleSheet" type = "text/css" href = "style.css">
<style type = "text/css">
</style>
</head>
<body style = "background-color:#666666; font-size:36pt; font-family:bold; color:#fffff;">
頻繁にリフレッシュするWebページを防ぐためのAsphow -www.zhangpeng.com.cn
</body>
</html>
上記は、頻繁に更新されるWebページを防ぐためのASPの実装方法の詳細な分析と紹介です。それを必要とする友達が来てそれを参照することができます。私はそれが誰にでも役立つことを願っています。