实现Server.UrlEncode和Server.UrlDecode功能的js代码

Code

以上代码跟c#写的Server.UrlEncode实现的效果是一样的,如果大家需要在客户端传入中文的字符,可以试试这个函数。

使用方法:"http://www.fanchuanbook.com/search.aspx?q=" + EncodeURI(q,false)

原文地址:https://www.cnblogs.com/vagerent/p/1279259.html