📅  最后修改于: 2022-03-11 14:54:55.356000             🧑  作者: Mango
代码示例1
table.indexOf = function ( tab, value )
for index, val in ipairs(tab) do
if value == val then
return index
else
return -1
end
end
end