它们两者之间有什么区别。我以为他们是一样的,但今天我意识到他们不是。剃刀中的()(括号)和{}(大括号)之间的区别
为什么这是正确的
@(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"}