librelist archives

« back to archive

lglib.http库添加函数

lglib.http库添加函数

From:
Uno Young
Date:
2012-07-11 @ 09:34
function makeParams(t)
local ret = ''
for k, v in pairs(t) do
ret = ret .. '&' .. k .. '=' .. encodeURL(v)
end
ret = ret:sub(2, -1)
return ret
end