技术栈

table.remove

类人_猿
2 年前
lua·toluaframework·table.remove
tolua中table.remove怎么删除表中符合条件的数据在lua中删除表中符合条件的数据其实很简单,但是有一个顺序问题,因为lua的表中的数据删除需要通过table.remove来删除,当你删除前一个后,索引值发生了变化。