• helloworld
    2019-08-13
    local ngx = ngx 这种方式,luacheck会报警告:accessing undefined variable ngx
    local ngx = require "ngx" 这样就不会报警告了,而且也能用,老师,这样可以吗

    作者回复: 就是这样的

    
     2
  • 北冥Master
    2019-11-20
    Require库local化的意义?避免修改库导致污染其他加载该库的代码?
    
    
  • 程斌
    2019-08-14
    一门语言,规范还是很重要的。老师有心了。
    
    
  • 许童童
    2019-08-12
    老师你好
    ++操作符之间是否需要空格?
    i++ 还是
    i ++

    作者回复: Lua 中并不支持 ++ 这个操作符,我们一般都是用 i = i + 1来替代

     1
    
我们在线,来聊聊吧