lua知識點-next

1.next原型:next(table[,index])  table是要遍歷表  index爲nil返回第一個索引  index爲最後一索引或表爲空時則返回nil index不爲nil返回index索引的下一個值 2.對table是否爲空表進行判定: function isEmptyTable(t)     return _G.next(t) == nil end local testTbl =
相關文章
相關標籤/搜索