当前位置: 代码迷 >> JavaScript >> 请教js的superproto是什么意思
  详细解决方案

请教js的superproto是什么意思

热度:151   发布时间:2012-09-15 19:09:28.0
请问js的superproto是什么意思?
var inherit = (function(){
  function F() {}
  return function (child, parent) {
  F.prototype = parent.prototype;
  child.prototype = new F;
  child.prototype.constructor = child;
  child.superproto = parent.prototype;
  return child;
  };
})();

其中child.superproto = parent.prototype;中的superproto 是啥意思啊?

------解决方案--------------------
child的自定义的属性
指向他parent 的prototype
  相关解决方案