Lua 元表 ; 在表上更改/新增功能到操作符。 使用元表中的 __index 在表中沒有鍵時查詢元表。 ; setmetatable(table,metatable) - 此方法用於為表設定元表。 getmetatable( ...
確定! 回上一頁