背景:后端返回格式为字符串格式的数组数据,需要转化为数组格式 let arrString = "[1,2,3,4]" let arr = JSON.parse(arrString) console.log(arr) //[1,2,3,4]