lua遍历table,几种情况

1.代码: function this.test() t={'q','w','e','r','t','y','u'} for i,v in pairs(t) do logError(i..v) end --logError(t[0]) end 结果: 2.代码: function this.test() t={[0]='q','w','e','r','t','y'
相关文章
相关标签/搜索