js中对url进行编码解码的方法

只针对文本编码 encodeURI() 
只针对文本解码 decodeURI()
针对文本和特殊字符的编码  encodeURIComponent()
针对文本和特殊字符的解码  decodeURIComponent()

posted @ 2020-08-17 16:03  Ginelle  阅读(722)  评论(0编辑  收藏  举报