1.字符串转数字数组方法 const arr3 = ['1', '2', '3'] arr3.map(Number) 2.数字转字符串数组 const arr = [1, 2, 3] arr.map(String)