与getlocal不同的是,getupvalue的第一个参数是一个函数而不是一个整数. 例如: ```lua. function creator (). local x =0. local f = function (). print(x).
確定! 回上一頁