你肯定在使用decodeURI或者decodeURIComponent或者encodeURI或者encodeURIComponent来对字符串进行编解码吧?
URI malformed ==》URI格式错误
原因:出现这个报错是因为你的字符串中含有了%导致的。
解决方案:去掉%。