1·字面量声明
var obj = { name : xiaohong };
var arr = [ 1, 2, 3, 45, 6, 7, 98];
2`构造函数声明对象
var obj = new Ojbect ({
name :'hong',
age : 18
});
标签:量式,字面,对象,var,声明,构造函数 From: https://www.cnblogs.com/wfming/p/16617041.html
1·字面量声明
var obj = { name : xiaohong };
var arr = [ 1, 2, 3, 45, 6, 7, 98];
2`构造函数声明对象
var obj = new Ojbect ({
name :'hong',
age : 18
});
标签:量式,字面,对象,var,声明,构造函数 From: https://www.cnblogs.com/wfming/p/16617041.html