function BB() {}
BB.__proto__ === Function.prototype
true
BB.prototype.__proto__ === Object.prototype
true
var bb = new BB()
bb.__proto__.constructor === BB
es5的继承
猜你喜欢
转载自blog.csdn.net/weixin_42201346/article/details/104441879
今日推荐
周排行