需求:多维数组=>一维数组let ary = [1, [2, [3, [4, 5]]], 6];let str = JSON.stringify(ary);第0种处理:直接的调用arr_flat = arr.flat(Infinity); ...
確定! 回上一頁