function Person(){ this.name = 'zhangsan'; Person.prototype = { age:23, job:'worke' } };var P1 = new Person();console.log(P1);
posted on 2018-07-05 18:34 玩笑过后 阅读(62) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3