![](/img/trans.png)
[英]Visual Studio 2012 - Breakpoints in Razor view files (“.cshtml”) not being loaded
[英]Why does Visual Studio highlight double curly braces in Razor (.cshtml/.razor)?
Although I have been working with Razor pages( .cshtml
) and Razor components( .razor
) in Blazor for a while in Visual Studio 2019, I did not stumble upon this feature up until now where it highlights anything between two pairs of braces: {{ }}
。
它适用于 Razor 页面( .cshtml
)和 Razor 组件( .razor
)。 Razor 语法文档中没有提到这种语法。 {{}}
语法的目的是什么? 我错过了什么?
这就是它的样子。 文本以亮粉色突出显示:
这是浅色主题中相同的亮点:
这由工具|选项中的“HTML 客户端模板值”设置映射。
它是一段 HTML 语法在 ao Angular 中用于数据绑定,
像<h1> {{user.username}} </h1>
。 堪比 Blazor 的黄色@
我认为这在 Blazor(剃刀)文件中没有任何意义。 安全忽略。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.