less函数的自调用不生效怎么回事?
@adapterDeviceList:750px,720px,640px,540px,480px,424px,414px,400px,384px,375px,360px,320px;
//设计稿
@psdWidth:750px;
//预设
@baseFontSize:100px;
@len:length(@adapterDeviceList);
.adapterMixin(@index) when(@index =< @len){
@media(min-width: extract(@adapterDeviceList,@index)){
html{
font-size: @baseFontSize/@psdWidth*extract(@adapterDeviceList,@index);
}
}
.adapterMixin(@index +1);
}.adapterMixin(1);
编译结果:
为什么呢????