Skip to content

zhouhuafei/zhf.sku

Repository files navigation

sku多规格

const sku = require('zhf.sku');

sku([
    ['a', 'b', 'c'], // 一级规格
    [1, 2, 3], // 二级规格
    ['77', '88', '99'], // 三级规格
]);
/*
[
    ['a', 1, '77'],
    ['a', 1, '88'],
    ['a', 1, '99'],
    ['a', 2, '77'],
    ['a', 2, '88'],
    ['a', 2, '99'],
    ['a', 3, '77'],
    ['a', 3, '88'],
    ['a', 3, '99'],
    ['b', 1, '77'],
    ['b', 1, '88'],
    ['b', 1, '99'],
    ['b', 2, '77'],
    ['b', 2, '88'],
    ['b', 2, '99'],
    ['b', 3, '77'],
    ['b', 3, '88'],
    ['b', 3, '99'],
    ['c', 1, '77'],
    ['c', 1, '88'],
    ['c', 1, '99'],
    ['c', 2, '77'],
    ['c', 2, '88'],
    ['c', 2, '99'],
    ['c', 3, '77'],
    ['c', 3, '88'],
    ['c', 3, '99'],
]
*/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published