哪个 HTML 助手绕过所有模板并呈现一个简单的字符串?
which HTML helper bypasses all templates and renders a simple string?
我从一些测试中得到的这个问题:
Which of the following templated HTML helpers of MVC bypasses all
templates and renders a simple string representation of the specified
model property?
和选项:
- 显示
- 标签
- 显示文本
- 编辑器
据我了解,这意味着哪个助手将 属性 显示为字符串?正确答案是标签?
正确答案是 DisplayText
,不要与 DisplayTextFor
混淆,后者是 DisplayText
的强类型版本,returns 是模型的注释值属性(如果预定义)或 null
否则
我从一些测试中得到的这个问题:
Which of the following templated HTML helpers of MVC bypasses all templates and renders a simple string representation of the specified model property?
和选项:
- 显示
- 标签
- 显示文本
- 编辑器
据我了解,这意味着哪个助手将 属性 显示为字符串?正确答案是标签?
正确答案是 DisplayText
,不要与 DisplayTextFor
混淆,后者是 DisplayText
的强类型版本,returns 是模型的注释值属性(如果预定义)或 null
否则