解决方案:
1、前台传参时 参数需要先加密(加两层): encodeURI(encodeURI($('#key').val()))
2、后台接收参数后进行解密:key = HttpUtility.UrlDecode(key, System.Text.Encoding.GetEncoding("UTF-8"));
解决办法源自:http://jun1986.iteye.com/blog/1056732
解决方案:
1、前台传参时 参数需要先加密(加两层): encodeURI(encodeURI($('#key').val()))
2、后台接收参数后进行解密:key = HttpUtility.UrlDecode(key, System.Text.Encoding.GetEncoding("UTF-8"));
解决办法源自:http://jun1986.iteye.com/blog/1056732