前端--encodeURI和encodeURIComponent对比

20 阅读1分钟

encodeURI(),不会对 +:、;?& 编码 encodeURIComponent(),会对所有敏感字符编码