function Animal(name, type, barkWay) {
this.name = name;
this.type = type;
this.bark = barkWay;
}
首字母大写
// var dog = new Animal("大黄","BYD",function () {
// console.log("汪汪汪");
// });
// console.log(dog);
//用new调用
Animal.prototype.master==null;
dog.masster="you";
console.log(dog);
//用prototype增加属性