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:
<li><i class="icon-comment"></i> 5</li>
玉:
li:i.icon-comment 5
ofcource 5 现在嵌套在 i 标签而不是 li 下。有什么办法可以做到这一点?
在我的模板中,我这样做:
li i.icon-comment | 5
有很多方法,比如:
|
li #[i.icon-comment] 5