0
我想知道在輸出文件中是否可以在html標籤末尾添加註釋。Jade在標籤末尾註釋
例如:
<div class="header">
....
</div> <!-- ./this comment -->
我想知道在輸出文件中是否可以在html標籤末尾添加註釋。Jade在標籤末尾註釋
例如:
<div class="header">
....
</div> <!-- ./this comment -->
可能不是一個好主意。 但是,如果你真的想要它,只需在div後添加註釋。 它不會與</div>
位於同一行。 它發送更多的HTML管道,所以我不會推薦它用於生產使用。
.header
hello
//./header
如果您使用//-
評論,它將不會將其放入瀏覽器的視圖源。用於私人評論。