JavaScript 1.8.5 在FF4中被引入。
Object.create
---- 创建指定的原型,并选择包含指定属性的对象
/* @prototype 对于使用的对象作为原型 @descriptors 包含一个或多个描述对象的JavaScript对象 */ Object.create(prototype,propertiesObject)
浏览器支持情况:
扩展阅读:
1、http://technet.microsoft.com/zh-cn/query/ff925952
2、https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/create