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") }