2012-12-18 108 views

回答

1

这似乎是多余的。 @:指定文字内容,但随后@将您带回服务器代码上下文中。它应该如下工作:

@if (isSomething) { 
    Scripts.Render("~/scripts/some-scripts") 
}