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'
相關文章
相關標籤/搜索