<li data-target="#carousel-example-generic" data-slide-to="{$key}" class="{$key ? '' : 'active'}"></li>如上三元运算符,jade模板中,怎么使用三元运算符啊?我使用如下方法,结果为if (index)li(data-target="#carousel-example-generic", data-slide-to="#{index}" class="active")elseli(data-target="#carousel-example-generic", data-slide-to="#{index}" class="")出现了两个active
添加回答
举报
0/150
提交
取消