
ASP代码我看不懂,,,高手帮我看看!!!!!!!!
ifnotisnumeric(id)orv=""orchk=""orltime=""thenresponse.write"<script>alert('投票失败!');h...
if not isnumeric(id) or v="" or chk="" or ltime="" then
response.write "<script>alert('投票失败!');history.back();</script>"
response.end
end if
if cdate(ltime)<date() then
response.write "<script>alert('投票有效时间已过,投票已经停止!');history.back();</script>"
response.end
end if]]
什么意思 展开
response.write "<script>alert('投票失败!');history.back();</script>"
response.end
end if
if cdate(ltime)<date() then
response.write "<script>alert('投票有效时间已过,投票已经停止!');history.back();</script>"
response.end
end if]]
什么意思 展开
1个回答
展开全部
f not isnumeric(id) or v="" or chk="" or ltime="" then
response.write "<script>alert('投票失败!');history.back();</script>"
response.end
end if
以上代码是在判断如果几个选择为空时。输出投票失败对话框。并返回到上一页
以下代码是在判断设置投票的最后时间是否小于当前投票时间如果小于就显示
“投票有效时间已过,投票已经停止”并且返回到上一页
if cdate(ltime)<date() then
response.write "<script>alert('投票有效时间已过,投票已经停止!');history.back();</script>"
response.end
end if
response.write "<script>alert('投票失败!');history.back();</script>"
response.end
end if
以上代码是在判断如果几个选择为空时。输出投票失败对话框。并返回到上一页
以下代码是在判断设置投票的最后时间是否小于当前投票时间如果小于就显示
“投票有效时间已过,投票已经停止”并且返回到上一页
if cdate(ltime)<date() then
response.write "<script>alert('投票有效时间已过,投票已经停止!');history.back();</script>"
response.end
end if
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询