Is Object.defineProperty() preferable to Object.create() when inheriting from a base constructor function

前端 未结 0 1022
鱼传尺愫
鱼传尺愫 2021-01-26 07:49

When subclassing a function constructor, is it preferable to use defineProperty() instead of create()? I\'ve seen both and I am a bit confused about th

相关标签:
回答
  • 消灭零回复
提交回复
热议问题