//var jsonStr = "{a:1,b:2}"; 报错
//var jsonStr = "{'a':1,'b':2}"; 报错
var jsonStr = '{"a":"1","b":"2"}'; 正确
alert(JSON.parse(jsonStr));
//var arrStr = "['22','33','44']"; 报错
var arrStr = '["22","33","44"]'; 正确
alert(JSON.parse(arrStr));
为啥就是双引号在外部包括就不行了?规定?还是有啥含义在这,请大神分析下,感谢感谢!