Object.create (); //ECMAScript 5
参数:原型参数
手动实现:
if(typeof Object.create !=='function")
Object.create=function(o){
function F(){};
F.protype=o;
return new F();
}
参考:http://googl/OLQhp
Object.create (); //ECMAScript 5
参数:原型参数
手动实现:
if(typeof Object.create !=='function")
Object.create=function(o){
function F(){};
F.protype=o;
return new F();
}