首页 > 代码库 > lua 的语法糖

lua 的语法糖

tb = {}function tb:fun1()    self  ---tbendfunction tb.fun2()    self ---->无endtb:fun1()tb.fun2()------self 相当于 this

 

lua 的语法糖