Lua中翻转Table
-- * @description:翻转Table
-- * @params:reverseTab : 需要翻转的table
-- * @date: 2020-4-16 18:04
-- * @author: 不够自律的人
function LuaUtil.ReverseTable(reverseTab)
local tmp = {}
for i = 1, #reverseTab do
local key = #reverseTab + 1 - i
tmp[i] = reverseTab[key]
end
return tmp
end