decodeURI
%
URI malformed
解决方法将字符串中的%替换为25%就行了
25%
var str = '1%2'; if(str.indexOf('%') > -1) { str = str.replace(/%/g,'%25'); }