1.元数据constarr1=["#355b54","#12d806","#748aac"];constarr2=[{type:"一类"},{type:"二类"},{type:"三类"},{type:"四类"},{type:"五类"},{type:"六类"},{type:"七类"},{type:"其他"}];2.需要将arr中数据按照索引插入到arr2,arr1商量继续从arr[0]添加.3.最后的效果是这样:constarr=[{type:"一类",color:"#355b54"},{type:"二类",color:"#12d806"},{type:"三类",color:"#748aac"},{type:"四类",color:"#355b54"},{type:"五类",color:"#12d806"},{type:"六类",color:"#748aac"},{type:"七类",color:"#355b54"},{type:"其他",color:"#12d806"}]
侃侃无极
开心每一天1111
相关分类