//数组长度不固定constspec=[{label:'颜色',content:['红色','黑色','蓝色']},{label:'产地',content:['杭州','贵州','商州']},{label:'尺寸',content:['大号','中号','小号']}];//操作spec得到如下datas,spec0,spec1,spec2是动态对应spec数组的顺序,总共生成27个对象constdatas=[{spec0:'红色',spec1:'杭州',spec2:'大号'},{spec0:'红色',spec1:'杭州',spec2:'中号'},{spec0:'红色',spec1:'杭州',spec2:'小号'},{spec0:'红色',spec1:'贵州',spec2:'大号'},{spec0:'红色',spec1:'贵州',spec2:'中号'},{spec0:'红色',spec1:'贵州',spec2:'小号'},{spec0:'红色',spec1:'商州',spec2:'大号'},{spec0:'红色',spec1:'商州',spec2:'中号'},{spec0:'红色',spec1:'商州',spec2:'小号'}//.....];
MYYA
素胚勾勒不出你
相关分类