html中的空格encodeURIComponent后变成%C2%A0,而js中的空格是'%20',二者无法匹配,所以要进行一次替换 转载于:https://www.cnblogs.com/coderhero/p/8818932.html