function create(pro) {
function F() {
}
F.prototype = pro;
return new F();
}
js手写object.create方法
おすすめ
転載: blog.csdn.net/weixin_43595755/article/details/118298367
おすすめ
ランキング