【发布时间】:2015-06-15 10:34:16
【问题描述】:
如果我有如下的 IF 语句:
If currentdate >= rating1 then
status = 2
ELSEIF currentdate >= rating2 then
daylight_savings_status = 0
ELSEIF currentdate >= rating3 then
daylight_savings_status = 1
ELSE
daylight_savings_status = 1
End If
在javascript中有类似的东西
console.log('test');
我可以测试哪个 IF 语句是该语句的真值?
这样我就可以在 firebug(firefox) 上测试它了。
【问题讨论】:
-
您要求在“ASP.Net”中记录服务器端代码 (c#/vb) 还是前端 (Javascript) 代码。
-
@snowYetis 很高兴知道
-
@CodeCaster 是和否...这可能适用于 ASP.Net Webforms,但解决方案是相同的。
标签: asp.net