tb = {} function tb:fun1() self ---tb end function tb.fun2() self ---->无 end tb:fun1() tb.fun2() ------self 相当于 this
lua 的语法糖
原文:http://www.cnblogs.com/mattins/p/3967018.html