使用rawset,可以绕过metamethod:. function declare (name, initval). rawset(_G, name, initval or false). end. or 带有 false 是为了保证新的全局变量不会为 nil ...
確定! 回上一頁