encodeUrl

本节介绍 Zoho Creator 中的 encodeUrl 函数的语法和使用。

描述

encodeUrl函数为“所有空格字符”和“URL 字符串中不允许的其他字符”编码,并返回编码的字符串。此函数可用于 getURL()、postURL() 和 openURL() Deluge 任务,以便为所需的 URL 编码,然后传递已编码的 URL 字符串。

语法

encodeUrl(<url-string>

encodeUrl 函数语法有以下参数。

<url-string> - 必需。待编码的 URL,例如,“http://www.zoho.com.cn”

返回值

返回已编码的 url。 

示例

myURL = "http://www.test/zohotest?name=John Doe&country=New Zealand&age=101";
myEncodedURL = encodeUrl(myURL);