1
我希望能夠到項目對一個列表進行比較,看是否存在在列表中的當前項目,像這樣:SCSS包括?對於列表
$elements: one two three four five;
$picked: two five;
@for $i from 1 through length($elements) {
@if not index($picked, nth($elements, $i)) == false {
}
}
還是有更好的方式來做到這一點?