escape,encodeURI,encodeURIComponent区别

escape编码字符串

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

猜你喜欢

转载自www.cnblogs.com/lovewl2/p/9810721.html