标签:数组 www div span amp icon ref highlight line
var a = ‘{"name":"1234"}‘;
var c = ‘{["name":"张三","age":18],["name":"李四","age":19]}‘;
var f = JSON.parse(a);//这样写正确
var t = JSON.parse(c);//json数组的时候提示语法错误
最佳答案:
标签:数组 www div span amp icon ref highlight line
原文地址:http://www.cnblogs.com/panxuejun/p/6117153.html