请问这种数组"[["name","小明","age","19"]]"怎么转成正常的数组尝试去操作它,报Uncaught SyntaxError: Unexpected identifier
"[["name","小明","age","19"]]"
Uncaught SyntaxError: Unexpected identifier
切割字符串处理一下就好啦~
const str = ('"[["name","小明","age","19"]]"').slice(1, -1); JSON.parse(str)
548k questions
547k answers
4 comments
86.3k users