let arr = ['h', 'e', 'l', 'l', 'o']
let str = arr.join('')
console.log(str) // 'hello'
JS——数组转换成字符串
最新推荐文章于 2022-05-11 15:34:16 发布
let arr = ['h', 'e', 'l', 'l', 'o']
let str = arr.join('')
console.log(str) // 'hello'