... 压入键名 //把栈顶当做key,栈-2处元素当做表格的值(tb["name"])压入栈顶 //该操作会把key弹出 lua_gettable(L, -2); const char *name = lua_tostring(L, -1); ...
確定! 回上一頁