if (typeof Object.create !== 'function') {
Object.create = function (o) {
var F = function () {};
F.prototype = o;
return new F();
}
};
var another_stooge = Object.create(stooge);
以上代码从Javascripts: the good parts中摘出。
--
修改:saynothing FROM 122.224.254.*
FROM 122.235.139.*