@{ var myMessage = "Hello World"; }
myMessage 变量的值是: @myMessage
@{ var greeting = "欢迎来到简单教程(www.twle.cn)"; var weekDay = DateTime.Now.DayOfWeek; var greetingMessage = greeting + " 今天是: " + weekDay; }
The greeting is: @greetingMessage