Skip to content

Encoding

vimfung edited this page Oct 23, 2018 · 7 revisions

Summary

该类型提供了与编码相关的功能接口

继承

Encoding > Object

Class Methods

urlEncode

对指定文本进行URL编码

声明

function Encoding:urlEncode(text);

参数

  • text 需要进行URL编码的文本

返回值

编码后的文本


urlDecode

对URL编码后的文本进行URL解码

声明

function Encoding:urlDecode(text);

参数

  • text 需要进行URL解码的文本

返回值

解码后的文本

Clone this wiki locally