Rails--content_for和yield时间:2024-04-29 12:34:01--使用: (1)layout中使用<%=yield(:js)%> (2)html中使用<% content_for :js do %>[XXX]<% end %>