function Person(){ this.name = 'zhangsan'; Person.prototype = { age:23, job:'worke' } };var P1 = new Person();console.log(P1);