lua 元表其实就是为了扩展表格间的运算,比如之前我们如果让2个表格相加就会报错, ... __index = {name='沧浪水'} setmetatable(ta,tb) --沧浪水 print(ta.name) --改 ...
確定! 回上一頁