metatable扩展
-
Lua编程示例(二):面向对象、metatable对表进行扩展
具体代码如下: counter = { count = 0 } function counter.get(self) return self.count end function...
kavin 2018.05.19 2279浏览 0
具体代码如下: counter = { count = 0 } function counter.get(self) return self.count end function...
kavin 2018.05.19 2279浏览 0