在网络上,我已经看到了两个例子
<% if @showIt -%>
some html content
<% end -%>
并且没有
<% if @showIt %>
some html content
<% end %>
短跑。两个版本都运行良好。那么,它有什么不同呢?
谢谢!
在网络上,我已经看到了两个例子
<% if @showIt -%>
some html content
<% end -%>
并且没有
<% if @showIt %>
some html content
<% end %>
短跑。两个版本都运行良好。那么,它有什么不同呢?
谢谢!