函数:urlDecoder 解码

函数名称:解码

函数功能:json 串解码

TSLib 版本:仅支持 v1.2.1 以上版本

函数方法

str2 = urlDecoder(str1)

参数 类型 必填 说明
str1 string json 串解码的内容
返回值 类型 说明
str2 string 解码后的内容

函数用例

require "TSLib"--使用本函数库必须在脚本开头引用并将文件放到设备 lua 目录下
str1 =[[%E8%A7%A6%E5%8A%A8%E7%B2%BE%E7%81%B5]]
-- 解码
str2 = urlDecoder(str1)
dialog(str2,5)
Copyright 北京帮你玩科技有限公司 2023 all right reserved,powered by Gitbook该文章修订时间: 2024-03-06 17:50:18

results matching ""

    No results matching ""