var atr = decodeURIComponent(string);//url解码
var b = atr.replace(/\+/g,' ');//正则,把所有加号替换为空格
转载于:https://www.cnblogs.com/luccy/p/5279903.html
var atr = decodeURIComponent(string);//url解码
var b = atr.replace(/\+/g,' ');//正则,把所有加号替换为空格
转载于:https://www.cnblogs.com/luccy/p/5279903.html