【发布时间】:2012-03-18 05:04:36
【问题描述】:
两者有什么区别。我以为它们是一样的,但今天我意识到它们不是。
为什么这是正确的
@(Model.WillAttend == true ?
"This will be an exciting party with you" :
"So sorry. You'll lose the beeer")
这不是:
@{Model.WillAttend == true ?
"This will be an exciting party with you" :
"So sorry. You'll lose the beeer"}
【问题讨论】:
标签: asp.net-mvc asp.net-mvc-3 razor