How would I make a general case accessor for an object in js?

后端 未结 0 1155
抹茶落季
抹茶落季 2020-12-03 08:57

I am trying to make a general case getter/setter for any given object. for example,

var obj = {
   a: 1,
   b: "dog",
   c: false
}

Object.definePr         


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