let txt = 'xxx+xxa'
if (txt.indexOf('+') > -1) {
txt = txt.replace(new RegExp("\\+", "gm"), "%2B");;
}
解决ajax请求浏览器编译+号消失问题
最新推荐文章于 2023-02-15 14:08:04 发布
let txt = 'xxx+xxa'
if (txt.indexOf('+') > -1) {
txt = txt.replace(new RegExp("\\+", "gm"), "%2B");;
}