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中返回變量?