zoukankan
html css js c++ java
ASP禁止刷新当前页
方法1:
<
%
Dim
SplitReflashPage
Dim
DoReflashPage
dim
shuaxin_time
DoReflashPage
=
true
shuaxin_time
=
10
ReflashTime
=
Now
()
if
(
not
isnull
(session(
"
ReflashTime
"
)))
and
cint
(shuaxin_time)
>
0
and
DoReflashPage
then
if
DateDiff
(
"
s
"
,session(
"
ReflashTime
"
),
Now
())
<
cint
(shuaxin_time)
then
response.write
"
<META http-equiv=Content-Type content=text/html; charset=gb2312><meta HTTP-EQUIV=REFRESH CONTENT=3>本页面起用了防刷新机制,请不要在<b><font color=ff0000>
"
&
shuaxin_time
&
"
</font></b>秒内连续刷新本页面<BR>正在打开页面,请稍候……
"
response.
end
else
session(
"
ReflashTime
"
)
=
Now
()
end
if
elseif
isnull
(session(
"
ReflashTime
"
))
and
cint
(shuaxin_time)
>
0
and
DoReflashPage
then
Session(
"
ReflashTime
"
)
=
Now
()
end
if
randomize
timer
regjm
=
int
(
rnd
*
8998
)
+
1000
%
>
方法2:
<
%
Dim
URL
If
DateDiff
(
"
s
"
,Request.Cookies(
"
oesun
"
)(
"
vitistime
"
),
Now
())
<
2
Then
URL
=
Request.ServerVariables(
"
Http_REFERER
"
)
Response.Write(
"
<meta http-equiv=""refresh"" content=""2;URL=
"
&
URL
&
"
"">
"
)
Response.Write(
"
防刷新,两秒后自动跳转
"
)
Response.
End
End
IF
Response.Cookies(
"
oesun
"
)(
"
vitistime
"
)
=
Now
()
%
>
青苹果Web应用商店
https://webapp.taobao.com/
PHP/ASP.NET/ASP/UCHOME/DISCUZ! X系列网站开发,详细需求联系
QQ:8511978
查看全文
相关阅读:
ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
pycocotools使用教程
with torch.no_grad() 详解
虚拟机Ubuntu上下载Pytorch显示超时
Deep Layer Aggregation DLA网络的结构
tgz文件解压命令
install mysql at linux
devops issue
process data
unittest
原文地址:https://www.cnblogs.com/Dicky/p/131082.html
最新文章
Spring提供JdbcTemplate&NamedParameterJdbcTemplate
实现简易JDBC框架
JDBC进阶 元数据
JDBC基础
汇编二(入门例子)
汇编一(汇编入门手册)最全
事物的隔离级别
数字处理
搞定Junit单元测试{非专业}
Java Arrays类方法
热门文章
详解Java8 Optional类{最全}
序列化禁止使用Optional
详解JAVA8Stream API {全}
详解JAVA8Stream 方法引用(基础){全}
详解JAVA8函数式接口{全}
最长公共子串(图文版)
判断当前环境是否是docker环境
CenterNet中高斯半径的计算
(绝对详细)CenterNet训练自己的数据(转载)
计算图片数据集的均值方差
Copyright © 2011-2022 走看看