0
我發現很難說出話來,但我怎麼可以在玉內使用if語句,並讓它只包裝一些元素,如果設置爲true。嵌套if語句與翡翠
密新
mixin select(data){
if(!data.small)
.form-group
select
option jamie
期望
//scss
+select()
//html output
<div class="form-group">
<select>
<option>jamie</option>
</select>
</div>
電流輸出
//scss
+select()
//html output
<div class="form-group">
</div>
<select>
<option>jamie</option>
</select>
+0
類不重要。當'data.small'和'!data.small'只輸出'select'時,主要有'
'。我認爲這就是你:) –
所以'如果(!data.small)'你想''