摘要: function copyObject(orig) { var copy = Object.create(Object.getPrototypeOf(orig)); //创建一个新的原型对象 copyOwnPropertiesFrom(copy, orig); return copy; } func 阅读全文