if(typeof Object.getPrototypeOf!=="function"){ if(typeof "test"._proto_==="object"){ Object.getPrototypeOf=function(object){ return object._proto_; }; }else{ Object.getPrototypeOf=function(object){ return object.constructor.prototype; }; } }
原文:https://www.cnblogs.com/yezi111/p/11643431.html