1
參照混入有沒有辦法通過參照SASS其他功能或混入傳遞函數或混入,然後調用引用的函數或混入?傳遞函數或SASS
例如:
@function foo($value) {
@return $value;
}
@mixin bob($fn: null) {
a {
b: $fn(c); // is there a way to call a referenced function here?
}
}
@include bob(foo); // is there any way I can pass the function "foo" here?