标签:
var arr = {‘a‘:‘A‘,‘b‘:‘B‘}; console.log(arr); console.log(typeof arr); console.log(arr[‘a‘]); console.log(arr.a);
都可以正常输出
var arr = []; arr[‘a‘] = ‘A‘; arr[‘b‘] = ‘B‘; console.log(arr);
console.log(typefof arr); //object
console.log(arr.a); //A
console.log(arr[‘a‘]); //A
标签:
原文地址:http://www.cnblogs.com/qinqiu/p/5088241.html