LUA table with function arguments and passing nil

前端 未结 0 931
独厮守ぢ
独厮守ぢ 2021-01-28 08:53

Trying to use a table as a lookup for user generated data passed in externally.

tab = { [\'on\']  = function(x) x=x+1 return x end,
        [\'off\'] = function(x         


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