2
在網上我見過的例子都與破折號在rails html scriptlet中的含義是什麼?
<% if @showIt -%>
some html content
<% end -%>
,並沒有
<% if @showIt %>
some html content
<% end %>
衝刺。兩個版本工作得很好。那麼,它有什麼不同?
謝謝!
在網上我見過的例子都與破折號在rails html scriptlet中的含義是什麼?
<% if @showIt -%>
some html content
<% end -%>
,並沒有
<% if @showIt %>
some html content
<% end %>
衝刺。兩個版本工作得很好。那麼,它有什麼不同?
謝謝!
謝謝,不知何故google搜索並沒有幫助我:) – 2010-06-10 20:08:34