vue,html注释包含注释会出错,嵌套注释,vscode
vscode安装"HTML-Comment"插件
即可
注释的时候,如果内容还包含注释,就用ctrl+shift+/
<tr>
<!-- <th>dfasdf</th> -->
<th colspan="2" class="post_time">dsdafad</th>
<th>adsfsffa</th>
</tr>
注释后变为
<!-- <tr>
<!== <th>dfasdf</th> ==>
<th colspan="2" class="post_time">dsdafad</th>
<th>adsfsffa</th>
</tr> -->