1>
const area = ['0点,1点'];
console.log(area[0])
const a = JSON.stringify(area[0])
const b = a.substring(1, a.length - 1)
const c = b.split(',')
console.log(c)
2>
const area = ['0点,1点'];
area[0].split(',')
console.log(area[0].split(','))
非常规数组转化
猜你喜欢
转载自blog.csdn.net/AnnyXSX/article/details/113308135
今日推荐
周排行