如何停止自动使用Tag Helper? [英] How can i stop a Tag Helper automatically being used?
本文介绍了如何停止自动使用Tag Helper?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
例如:我希望我的标记按原样呈现。相反,它会自动生成所有其他物品。如何关闭该特定标签的标签助手?
For example: I want my tag to render as-is. Instead it is auto generating all the other goodies with it. How do i turn off Tag Helpers for that one specific tag?
推荐答案
您可以添加!
在标记名称之前,以防止执行标记助手:
You can add a !
before the tag name to prevent the tag helper from executing:
<!form method="post">
<button type="submit">Submit</button>
</!form>
这篇关于如何停止自动使用Tag Helper?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文