函数:httpBuildQuery 自动拼接生成 URL 参数字符串

函数功能:使用给出的关联(或下标)数组生成一个经过 URL-encode 的请求字符

TSLib 版本:仅支持 v1.3.4 及其以上版本

函数方法

str = httpBuildQuery(tab)

参数 类型 必填 说明
tab table 需要转换的内容
返回值 类型 说明
str string 转换后的 URL-encode 的请求字符

函数用例

require("TSLib")
tab = {a=1,b=2,c=3,d="中文"}
dialog(httpBuildQuery(tab))
Copyright 北京帮你玩科技有限公司 2023 all right reserved,powered by Gitbook该文章修订时间: 2024-03-06 17:50:18

results matching ""

    No results matching ""