[removed] Object Literal reference in own key's function instead of 'this'

后端 未结 5 538
清酒与你
清酒与你 2020-11-22 03:18

Is it problematic to reference an object literal within a function which is part of that very literal? It seems to work just fine, but I want to make sure there aren\'t othe

5条回答
  •  别跟我提以往
    2020-11-22 03:53

    If you are not using prototype object, you czn go like that. as all instances of your object will return the value of the obj instance...

提交回复
热议问题