Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用#{}插值在 HTML 样式的属性中插入复杂的表达式?
#{}
span(class="widget_#{widget.number}")
您可以通过 Javascript 方式使用它。
span(class="widget_" + widget.number)