lua 中刪除table中的多個元素

轉載自:http://m.blog.csdn.net/blog/zxt5105515/34114555性能 不少時候,咱們有這樣的需求:刪除table中若干符合條件的元素,最原始的想法就是用for遍歷一邊table,符合條件的用table.remove就能夠了測試 <span style="font-size:14px;">function test1(t) for i , v in ipair
相關文章
相關標籤/搜索