ES5创建对象的方式
1、对象字面量
var obj = { };
2、new Object()构造函数
var Obj = new Object();
3、七种模式:
工厂模式:
https://blog.csdn.net/cake_eat/article/details/108690230
构造函数模式:
https://blog.csdn.net/cake_eat/article/details/108690494
原型模式:
https://blog.csdn.net/cake_eat/article/details/108694307
组合使用构造函数和原型模式:
https://blog.csdn.net/cake_eat/article/details/108696131
动态原型模式:
https://blog.csdn.net/cake_eat/article/details/108696293
寄生构造函数模式:
https://blog.csdn.net/cake_eat/article/details/108696364
稳妥模式:
https://blog.csdn.net/cake_eat/article/details/108696440