ECMAScript -对象、构造函数实例化原理、包装类原理一、对象二、构造函数三、包装类
目录一、对象1.创建一、对象1.创建对象字面量形式创建var person = {name:"jacky",eat:function(){},};构造函数形式创建var person = new Object();person.name = 'jacky';person.eat = function(){};// 1.添加属性teacher.address = “北京”// 2. 添加方法teacher.drink = function(){console.log