//编码
System.Web.HttpContext.Current.Server.UrlEncode(values);//web中使用
System.Web.HttpUtility.UrlEncode(values, System.Text.Encoding.UTF8);//winform中使用
encodeURI()//js
//恢复
System.Net.WebUtility.UrlDecode(v);
decodeURI()//js
JS中传递参数时需要使用encodeURIComponent函数编码参数
解码使用decodeURIComponent()