摘要: 1>先把字符串转码 let data = encodeURI(要转化的值) 2>接下来替换掉&nbsp空格 data = data .replace(/%C2%A0/g,'%20'); 3>再转回来就ok了 data = decodeURI(data); 阅读全文
posted @ 2022-12-02 11:55 Ocean- 阅读(959) 评论(0) 推荐(0)