迷你专题提供迷你的最新资讯内容,帮你更好的了解迷你。
关键字:   and break do else elseif end false for function if in local nil not or repeat return then true until while 使用变量不需要声明,总是全局变量,除非加"local"。local的作用域是在最里层的end和其配对的关键字之间。全局变量的作用域是整个程序。大小写相关。定义一个变量的方法
   迷你lua 5.1参考手册收藏 新一篇: LUA复用代码 | 旧一篇: LUA杂项 关键字:   and break do else elseif end false for function if in local nil not or repeat return then true until while 使用变量不需要声明,总是全局变量,除非加"local"。local的作用域是在最里