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 {
}
}
还是有更好的方式来做到这一点?