1 var person = new Object(); 2 3 var person = {}; 4 5 //两种方式都可以创建对象。 使用构造函数 和 对象字面量表示法。
js学习笔记2
原文:https://www.cnblogs.com/dengsheng/p/10686254.html