self.getDescartesSku = function (selSaleProp, i, nowLst, allALst) {
if (selSaleProp.length == 0) {
return;
}
if (i == selSaleProp.length - 1) {
for (var tempi = 0; tempi < selSaleProp[i].values.length; tempi++) {
var tempA = nowLst.concat(selSaleProp[i].values[tempi]);
allALst.push({ SaleProps: tempA });
}
} else {
for (var tempi = 0; tempi < selSaleProp[i].values.length; tempi++) {
var tempA = nowLst.concat(selSaleProp[i].values[tempi]);
self.getDescartesSku(selSaleProp, (i + 1), tempA, allALst);
}
}
};
版權聲明:本文爲博主原創文章,未經博主容許不得轉載。get