ASP URLEncode 方法

urlencode 方法把 url 编码规则应用到指定的字符串。

语法

server.urlencode(string)

参数 描述
string  必需。要编码的字符串。

实例

<%
response.write(server.urlencode("https://www.runoob.com"))
%>

输出:

https%3a%2f%2fwww%2erunoob%2ecom
相关文章