10.17作业
2017-10-17 20:08:47 0 举报
尝试画出下面代码的原型链(包括构造函数部分) <script> function Animal() { } function Dog() { } Dog.prototype = new Animal(); var dog = new Dog();
作者其他创作
大纲/内容
实例化
.__ptoto__
Object
尝试画出下面代码的原型链(包括构造函数部分)
Object.ptototype
.__proto__
A1
.prototype
function Animal() { } function Dog() { } Dog.prototype = new Animal(); var dog = new Dog();
Animal
dog
null(空)
Function
Dog
.__protp__
null
Animal.ptototype
0 条评论
下一页