【发布时间】:2012-12-27 01:32:22
【问题描述】:
有没有办法通过引用SASS中的另一个函数或mixin来传递一个函数或mixin,然后调用引用的函数或mixin?
例如:
@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?
【问题讨论】:
-
您现在可以传递meta.get-function() 返回的函数。您仍然使用meta.call() 调用它。