//理解对象 //最简单的方式就是创建一个Object的实例 var person = new Object(); person.name = "宝清老窖"; person.age = 28; person.job = "Software engineer"; person.sayName = function(){ alert(this.name); } person.sayName();
//理解对象 //最简单的方式就是创建一个Object的实例 var person = new Object(); person.name = "宝清老窖"; person.age = 28; person.job = "Software engineer"; person.sayName = function(){ alert(this.name); } person.sayName();