在Lua有兩個特殊變量-- _G 和 _ENV ,其分別表示全局環境和當前環境。 ... ok) ok = pcall(setfenv, loadstring) print("set loadstring function environment: " ...
確定! 回上一頁