js 二位数组改成一维数组

function get1DArray(arr1:any){
	var arr2 = arr1.reduce(function (a:any, b:any) { 
		return a.concat(b)
	});
    return arr2;
}
get1DArray(dataForm.peiyangminmingxiArr)

  

posted @ 2023-03-22 15:17  南瓜壳  阅读(18)  评论(0编辑  收藏  举报