0
当我使用默认less.js我可以在一个函数中返回一个变量,如:lessphp - 一个函数返回变量
.function(@x,@y) {
.innerFunction() when (@x = @y) {
@output: @x
}
.innerFunction() when not (@x = @y) {
@output: @x/10;
}
.innerFunction() when (...) {
@output: @x + @y;
}
property: @output;
}
这是非常实用的,以创建更复杂的功能较少,但它不工作lessphp ...有没有办法在Lessphp中返回变量?