数组转换为字符串
const arr = [123, 321, 213]
let res = arr.toString()
字符串转换数组
const arr ="123, 321, 132"
let temp = []
arr.split(',').map((v)=>{
temp.push(v) // || temp.push( Number((v))
})
数组转换为字符串
const arr = [123, 321, 213]
let res = arr.toString()
字符串转换数组
const arr ="123, 321, 132"
let temp = []
arr.split(',').map((v)=>{
temp.push(v) // || temp.push( Number((v))
})