__index = function(t,key) return "it is "..key end t = {1,2,3} --输出未定义的key索引,输出为nil print(t.key) setmetatable(t,mt) --设置元表后 ...
確定! 回上一頁