js
编码:escape
解码:unescape
.net:
编码:HttpUtility.UrlEncodeUnicode
解码:HttpUtility.UrlDecode
js
编码:encodeURIComponent
解码:decodeURIComponent
.net:
编码:HttpUtility.UrlEncode
解码:HttpUtility.UrlDecode
实践又发现:
通过URL传递或Ajax的Get传递数据,要用escape,
Ajax的Post传递数据,要用encodeURIComponent