ASP URLEncode 属性
定义和用法
URLEncode 方法将 URL 编码规则应用于指定的字符串。
Syntax
Server.URLEncode(string)
Parameter | Description |
---|---|
string | Required. The string to be encoded. |
Example
<% response.write(Server.URLEncode("http://www.codew3c.com")) %>
Output
http%3A%2F%2Fwww%2Ecodew3c%2Ecom%2Ecn