其他
2024-07-24 本文已影响0人
凉夜lrs
table.unpack()
参数是一个数组,返回值为数组内的所有元素:
![](https://img.haomeiwen.com/i15720501/7b054df40ec2dd12.png)
goto 实现 continue
for k, v in pairs(tb) do
if not v then
goto continue
end
-- 执行代码
::continue::
end
参数是一个数组,返回值为数组内的所有元素:
for k, v in pairs(tb) do
if not v then
goto continue
end
-- 执行代码
::continue::
end