ASP URLEncode 方法

定义和用法

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


Syntax

  1. Server.URLEncode(string)
参数描述
string必需。要编码的字符串。

实例

  1. <%
  2. response.write(Server.URLEncode("https://cankaoshouce.com"))
  3. %>

输出

  1. https%3A%2F%%2Ecankaoshouce%2Ecom

分类导航