随笔分类 -  openresty

上一页 1 2
openresty lua
lua基本语法案例
摘要:print('打印换行:\nhelloworld\n') --local用来声明局部变量,全局变量不用指定 --Lua声明变量的时候,并不需要指定数据类型: --声明字符串 local str='hello' --声明数字 local num=21 --声明布尔类型 local flag=true 阅读全文
posted @ 2021-10-20 12:05 Ruthless 阅读(241) 评论(0) 推荐(0)
Lua在windows下的安装
摘要:Lua在windows下的安装 阅读全文
posted @ 2021-10-20 10:11 Ruthless 阅读(175) 评论(0) 推荐(0)
openresty使用lua操作mysql
摘要:--1) 定义数据库连接属性 local props = { host = "127.0.0.1", port = 3306, database = 'xukang-dev', user = 'root', password = 'root', charset = 'utf8mb4', max_pa 阅读全文
posted @ 2013-06-21 11:01 Ruthless 阅读(9269) 评论(0) 推荐(0)

上一页 1 2