使用扩展运算符(...) 函数将Map 转为数组
(...)
const map = new Map() .set('a', 'good') .set('b', '1230') .set('c', '.com'); console.log(map) // Map(3) {"a" => "good", "b" => "1230", "c" => ".com"} console.log([...map]); // [["a","good"],["b","1230"],["c",".com"]]