84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
1. String type"[[1,2],[2,4],[3,6],[1,2]]", hope to get array type[ [1,2],[2,4],[3,6],[1,2]]
"[[1,2],[2,4],[3,6],[1,2]]"
[ [1,2],[2,4],[3,6],[1,2]]
走同样的路,发现不同的人生
var arr = JSON.parse("[[1,2],[2,4],[3,6],[1,2]]");
var str = "[[1,2],[2,4],[3,6],[1,2]]"; var newStr = JSON.parse(str); .log(newStr);
function g(str){ return JSON.parse(str); };
You can just search for JSON.parse. Baidu is better for this kind of problem
var arr = JSON.parse("[[1,2],[2,4],[3,6],[1,2]]");
Process ->
Packaging ->
You can just search for JSON.parse. Baidu is better for this kind of problem