lua 的语法糖
tb = {}
function tb:fun1()self ---tb
endfunction tb.fun2()self ---->無
endtb:fun1()tb.fun2()------self 相當于 this
?lua函有 tb.fun2() 這樣的定義 沒有this(self)
tolua++ 加了對象定義
轉載于:https://www.cnblogs.com/mattins/p/3967018.html
總結
- 上一篇: lz98n外接电源注意问题
- 下一篇: JCheckbox全选