Lua 本身并不是个面向对象语言需要根据lua语言元表的特性去实现面向对象 ... Object.id = 1 function Object:Test() print(self.id) end -- 冒号将调用 ...
確定! 回上一頁