?大家知道怎么把二維數(shù)組轉(zhuǎn)化成json對象嗎例如var?source?=?[['ID','name','size','parentID'],??????????????['0','工廠',13,''],??????????????['1','分銷站A',13,'0'], ?????????????????['2','分銷站B',13,'0']];需要轉(zhuǎn)成:var?jsonData?=?[{id:'0',?name:'工廠',size:13,parentID:''},{id:'1',?name:'分銷A',size:13,parentID:'0'},{id:'2',?name:'分銷B',size:13,parentID:'0'}];?
如何把二維數(shù)組轉(zhuǎn)化成json對象
慕粉4204745
2017-11-10 17:04:03