function Person(){ this.name = ‘zhangsan‘; Person.prototype = { age:23, job:‘worke‘ } };var P1 = new Person();console.log(P1);
原型一些小问题
原文:https://www.cnblogs.com/jokes/p/9269945.html