js手写object.create方法

function create(pro) {
    
    
  function F() {
    
    }
  F.prototype = pro;
  return new F();
}

おすすめ

転載: blog.csdn.net/weixin_43595755/article/details/118298367