我不太清楚以下两个符号之间有什么区别:
= render :partial => "order_fields", :locals => { :t => type, :f => c}
= render :partial => "order_fields", :locals => { t: type, f: c}
它们似乎都有效,但我不明白有什么区别。请你帮助我好吗?
我不太清楚以下两个符号之间有什么区别:
= render :partial => "order_fields", :locals => { :t => type, :f => c}
= render :partial => "order_fields", :locals => { t: type, f: c}
它们似乎都有效,但我不明白有什么区别。请你帮助我好吗?