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
相關文章
相關標籤/搜索