][1]
哪一个是正确的?求解释!
if(typeof Object.create !== 'function') {
Object.create = function(o) {
var F = function() {};
F.prototype = o;
return new F();
}
}
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
你的做法是对的,
但是也许它的上下文有beget这个函数,
如果没有上下文介绍这个,那么:
写书的人写错了