%s\n", lua_tostring(L, -1)); } //获取全局变量表格tb的值并压入栈顶 lua_getglobal(L, "tb"); lua_pushstring(L, "name"); //压入键名 //把栈顶当做key,栈-2处元素 ...
確定! 回上一頁