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]]

什么意思
展开
 我来答
百度网友95c62ee3a
2007-05-22 · 贡献了超过147个回答
知道答主
回答量:147
采纳率:0%
帮助的人:0
展开全部
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
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式