function Person(age) { this.age=age;}//指向改变了Person.prototype={ eat:function () { console.log("吃吃吃"); }};//先添加原型方法Person.prototype.sayHi=function () { console.log("您好");};var per=new Person(10);per.sayHi();