创建对象的三种方式

1、关键字
var obj = Object();

2、构造函数
var obj = new Object();

3、字面量
var obj = {};

猜你喜欢

转载自www.cnblogs.com/jsjx-xtfh/p/9457784.html