Nginx+lua-nginx-module,openresty,lua基础语法 笔记

1.Lua 用[[...]]括起来的字符不会被转义,在写正则表达式的时候很实用; 例:[[^\d+.\d+$]] 2.lua 中"~="表示不等于 3.可以用 type(aa)查看变量 aa 的类型 4.lua 中 0 是真(true) 5.字符串连接符:..7.lua 中的逻辑运算符比较特殊 例:local y = a and b or c 相当于 a?b:c 参考:https://moonbi
相关文章
相关标签/搜索