Groovy Equivalent: javascript object methods

后端 未结 0 1826
伪装坚强ぢ
伪装坚强ぢ 2021-01-17 23:35

In JavaScript you can do the following:

var obj = {
    property: 1,
    method1: function() {
      //...
    },
    method2: function() {
      //...
    }
         


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