日期:2014-05-16  浏览次数:20351 次

请问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