加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

是否有asp.net的控制台日志?

发布时间:2020-12-16 04:21:13 所属栏目:asp.Net 来源:网络整理
导读:如果我有如下IF语句: If currentdate = rating1 then status = 2ELSEIF currentdate = rating2 then daylight_savings_status = 0ELSEIF currentdate = rating3 then daylight_savings_status = 1ELSE daylight_savings_status = 1End If 是否有类似javascr
如果我有如下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( ‘试验’);

我可以测试哪个IF语句是声明的真实性?

这样我就能在firebug(firefox)上测试它.

解决方法

对于服务器端

C#& VB.Net
服务器端 – 这将显示在Visual Studio输出窗口中.

System.Diagnostics.Debug.WriteLine(log data here)

客户端JavaScript / Jquery – 这将在浏览器devtools控制台窗口中显示.适用于所有流行的浏览器.

console.log(log data here)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读