let res = arr[0].replace(/'/g,'"').replace(/name/g,'"name"').replace(/age/g,'"age"') JSON.parse(res) 替换一下就行