注册 登录
编程论坛 ASP技术论坛

关于response.end的疑问

cssart 发布于 2010-10-08 10:12, 858 次点击
各位好:

平时用 response.end() 并不多,不知道它后面的括号是不是可以省略?写成这样:
response.end

另外,看这段代码,我没有加后面的“()”,会不会出现什么问题?
if txje = "" then
 response.write("<script>alert('请输入提现金额!');window.history.go(-1);</script>")
 response.end
elseif session("yue") = 0 then
 response.write("<script>alert('您的帐户中无可用余额!');window.history.go(-1);</script>")
 response.end
elseif session("yue") - txje < 0 then
 response.write("<script>alert('您的提现金额超过可用余额!');window.history.go(-1);</script>")
 response.end
end if


5 回复
#2
cnfarer2010-10-08 10:18
难道你写代码不调试或测试吗?
#3
cssart2010-10-08 10:55
呵呵,当然测试,测试成功,但是我想知道标准语法。
#4
hams2010-10-08 12:04
ASP的语法不是那么严格
#5
kangli_kl2010-10-09 15:40
我都是这么用 response.end()
dw会自动生成代码的,呵呵
#6
myhnuhai2010-10-09 22:23
新手应该多用记事本编写的好,呵呵呵
1