将类的Table设置为对象的metatable也可以。例如: --复制所有的方法和属性到对象上 function Man:new() local instance = {} for k,v in pairs(self) do instance[k] ...
確定! 回上一頁