function Animal(){
}
function Dog(){
}
// 实现继承
Dog.prototype.__prototype = Animal.prototype;
var dog = new Dog();
转载于:https://my.oschina.net/bosscheng/blog/523114
function Animal(){
}
function Dog(){
}
// 实现继承
Dog.prototype.__prototype = Animal.prototype;
var dog = new Dog();
转载于:https://my.oschina.net/bosscheng/blog/523114