HttpUtility.UrlEncode(HttpUtility.UrlEncode("://"))
二次转码
reuslt: %253a%252f%252f
想要大写的转码,需要使用
var reuslt=Uri.EscapeDataString("://");
reuslt=Uri.EscapeDataString(aaa);
reuslt 为 %253A%252F%252F
js 使用 decodeURIComponent 即可
HttpUtility.UrlEncode(HttpUtility.UrlEncode("://"))
二次转码
reuslt: %253a%252f%252f
想要大写的转码,需要使用
var reuslt=Uri.EscapeDataString("://");
reuslt=Uri.EscapeDataString(aaa);
reuslt 为 %253A%252F%252F
js 使用 decodeURIComponent 即可