lua_gettable (L, -2);. lua_getglobal(L, t); lua_getfield(L, -1, k);. 在结束时,栈上的情况均为:栈顶为t[k],次顶元素为Table 类型的t。第二种方法其实是第一种 ...
確定! 回上一頁