玩笑过后

导航

原型一些小问题

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  玩笑过后  阅读(57)  评论(0编辑  收藏  举报