Lua C API 遍历table · lua_getglobal(L, t); · int index = lua_gettop(L); · lua_pushnil(L); · while (lua_next(L, index)) { · /* 此时栈上-1 处为value, - ...
確定! 回上一頁