url 解码


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