ASP URLEncode 屬性

คู่มืออ้างอิงอนุประเทศ Server

定義和用法

URLEncode 方法將 URL 编碼規則應用到指定的字符串。

Syntax

Server.URLEncode(string)
ตัวแปร คำอธิบาย
string จำเป็น ต้องเข้ารหัสข้อความที่ต้องการเข้ารหัส

ตัวอย่าง

<%
response.write(Server.URLEncode("http://www.codew3c.com"))
%>

ออกทาง

http%3A%2F%2Fwww%2Ecodew3c%2Ecom%2Ecn

คู่มืออ้างอิงอนุประเทศ Server