TUTORIAL后端与 Web 服务FETCHED

ASP URLEncode 方法

ASP URLEncode 方法 完整的 Server 对象参考手册 URLEncode 方法把 URL 编码规则应用到指定的字符串。 语法 Server.URLEncode(string) 参数 描述 string 必需。要编码的字符串。 实例 <% response.write(Server.URLEncode('https://www.run..

更新于 2026/7/16

教程详情页默认 noindex。

ASP URLEncode 方法


Server 对象参考手册 完整的 Server 对象参考手册

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

语法

Server.URLEncode(string)

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

实例

<%
response.write(Server.URLEncode("https://www.runoob.com"))
%>

输出:

https%3A%2F%2Fwww%2Erunoob%2Ecom


Server 对象参考手册 完整的 Server 对象参考手册