部分不行
============================================
修改了三行代码,见注释,不知道这样是否可以?
if (typeof Object.create !== 'function') {
Object.create = function (o) {
var x = {}; // 设置一个空的literal对象
x.prototype = o; // 设置literal对象的prototype;
//上一句改为x.__protot=o; 或 Object.setPrototypeOf(x,o); 但是能这样改的话为什么还需要polyfill
return X; // 返回该对象
}
};
var another_stooge = Object.create(stooge);
--
FROM 183.95.135.*