function Person(){ this.name = 'zhangsan'; Person.prototype = { age:23, job:'worke' } };
var P1 = new Person();
console.log(P1);
原型一些小问题
猜你喜欢
转载自www.cnblogs.com/jokes/p/9269945.html
今日推荐
周排行