JS中 urlencode
編碼 :encodeURIComponent(編碼的具體內容)
解碼 :decodeURIComponent(解碼碼的具體內容)
原理:對URL的組成部分進行個別編碼,而不用於對整個URL進行編碼
ASP.NET urlencode
編碼 :Uri.EscapeDataString(url)
解碼 :Uri.UnescapeDataString(url)
編碼 :encodeURIComponent(編碼的具體內容)
解碼 :decodeURIComponent(解碼碼的具體內容)
原理:對URL的組成部分進行個別編碼,而不用於對整個URL進行編碼
編碼 :Uri.EscapeDataString(url)
解碼 :Uri.UnescapeDataString(url)