blazor 渲染的 html 文件中有这么多评论标签 [英] so many comment tags in blazor rendered html file

查看:30
本文介绍了blazor 渲染的 html 文件中有这么多评论标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人知道为什么 blazor 渲染的 HTML 文件中有这么多空注释标签 <!--!-->我安装了 2 个项目,当我开始这个项目时,我看到了所有这些评论我也下载了一个项目,在里面也看到了这些评论

I was wondering if anyone knows why there are so many empty comment tags <!--!--> in blazor rendered HTML file I installed 2 projects, and when I started the project I saw all of these comments I also downloaded a project and saw these comments in there too

推荐答案

注释标签由 Blazor 框架生成,用于帮助跟踪 DOM 的哪些部分对应于哪些 Blazor 组件.

The comment tags are generated by the Blazor framework to help track which parts of the DOM correspond to which Blazor Components.

这篇关于blazor 渲染的 html 文件中有这么多评论标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆