使用 ES 5 提供的 Object.getOwnPropertyDescriptor() 方法;
Object.getOwnPropertyDescriptor()
两个参数
返回值是 由描述符组成的对象;
IE 9+ 支持。