1
我有在it..How對象的多維數組我可以將其壓平如何扁平化包含對象多維數組在javascript
myarr[0] =[{"name":"john","age":"50","location":"san diego"}
,{"name":"jane","age":"25","location":"new york"}
,{"name":"susane","age":"10","location":"los angeles"}
];
myarr[1] =[{"smoker":"yes","drinker":"no","insured":"no"}
,{"smoker":"no","drinker":"no","insured":"yes"}
,{"smoker":"no","drinker":"yes","insured":"no"}
];
myarr[1] =[{"status":"married","children":"none"}
,{"status":"unmarried","children":"one"}
,{"status":"unmarried","children":"two"}
];
弄平裝置弄平多維數組--make的它一個維陣列 - 我的意思是,抱歉混亂。例如我的數組包含所有對象的升序。 – learner
查看'concat' [here](http://www.hunlock.com/blogs/Mastering_Javascript_Arrays)。 –