Rap*_*ire 21 javascript underscore.js lodash
是否可以在underscore.js或lodash中添加非html注释?
就像是 :
<%-- We do this here because... %>
Run Code Online (Sandbox Code Playgroud)
那么评论不在生成的html代码中?
如果我写:
<!-- We do this here because... -->
Run Code Online (Sandbox Code Playgroud)
评论在结果html中.
谢谢.
Sha*_*mal 29
它是一个客户端模板,你仍然会看到评论,但它不会重复等...
<%
// comments go here
%>
Run Code Online (Sandbox Code Playgroud)