ASP URLEncode 方法
2018-09-21 03:40 更新
ASP URLEncode 方法

URLEncode 方法把 URL 编码规则应用到指定的字符串。
语法
Server.URLEncode(string)
参数 | 描述 |
---|---|
string | 必需。要编码的字符串。 |
实例
<%
response.write(Server.URLEncode("http://www.w3cschool.cn"))
%>
输出:
http%3A%2F%2Fwww%2Ew3cschool%2Ecom
response.write(Server.URLEncode("http://www.w3cschool.cn"))
%>
输出:
http%3A%2F%2Fwww%2Ew3cschool%2Ecom

以上内容是否对您有帮助:
更多建议: