你能解释一下 cshtml 中每个变量前的“@”符号是什么意思吗?
最佳答案
@ 用于从 View 标记切换到代码。是打印单个值还是编写代码块。
来自 ASP.NET :
The @ character starts inline expressions, single statement blocks, and multi-statement blocks:
阅读tutorial关于它的语法
关于c# - cshtml中 '@'标志是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10894783/