标签:bsp logs require color luarocks int cal http luasocket
luarocks用来安装第三方库非常方便
sudo luarocks install rapidjson sudo luarocks install luasocket
安装好之后,就可以使用了:
local rapidjson = require("rapidjson") local http = require("socket.http") user = {1,2,3,4} print(rapidjson.encode(user)) local response = http.request("http://www.baidu.com") print(response)
标签:bsp logs require color luarocks int cal http luasocket
原文地址:http://www.cnblogs.com/tianyajuanke/p/6810286.html