小黑小波比.引用数组中的数组的方法用来做参数判断

var a = {"a":"1","b":"2"};
var b = {"a":{"a1":"1","a2":"2","a3":"3"},"b":"11"};

console.log(a.b);
console.log(b.a.a3);

1.数组中添加{},

如果嵌套数组,这样写{“a”:{"a1":"1","a2":"2","a3":"3"},"b":"11"}


你可能感兴趣的:(小黑小波比.引用数组中的数组的方法用来做参数判断)