首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

请教js的superproto是什么意思

2012-09-15 
请问js的superproto是什么意思?var inherit (function(){function F() {}return function (child, paren

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

热点排行
Bad Request.