精品熟女碰碰人人a久久,多姿,欧美欧美a v日韩中文字幕,日本福利片秋霞国产午夜,欧美成人禁片在线观看

C# 實例 Switch 條件

c# 實例

switch 條件

@{
var message="";
var weekday=datetime.now.dayofweek;
var day=weekday.tostring()
}
<html>
<body>
@switch(day)
{
case "monday":
    message="this is the first weekday.";
    break;
case "thursday":
    message="only one day before weekend.";
    break;
case "friday":
    message="tomorrow is weekend!";
    break;
default:
    message="today is " + day;
    break;
}
<p>@message</p>
</body>
</html>

相關文章