escape,encodeURI,encodeURIComponent区别

escape编码字符串

URL中有url为参数时用encodeURIComponent,其他用encodeURI

posted @ 2018-10-18 15:22  lovewl  阅读(140)  评论(0编辑  收藏  举报