Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
也许是愚蠢的问题,但我没有找到它的意思。
代码示例:
@if (isSomething ) { @:@Scripts.Render("~/scripts/some-scripts") }
这似乎是多余的。@:指定文字内容,然后将@您带回服务器代码上下文。它应该与以下内容相同:
@:
@
@if (isSomething ) { Scripts.Render("~/scripts/some-scripts") }