__index 元方法查看表中元素是否存在,如果不存在,返回結果為nil;如果存在則由__index 返回結果。 mytable = setmetatable({key1 = "value1"}, { __index = function( ...
確定! 回上一頁