js 数组平铺Lieme2018-11-012024-01-04例如:1234var arr = [1,[3,4],[5,6,7]]1. arr.flat() // [1,3,4,5,6,7]2. arr = [].concat(...arr);