修复测试面板接口响应结果含百分数时报错的问题

This commit is contained in:
TevinLi 2016-12-28 16:21:52 +08:00
parent fcf2ff4950
commit 05cd3fa95b
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@
* @returns {string} - 格式化后的json字符串
*/
formatJson: function (str) {
var json = decodeURI(str);
var json = decodeURI(str.replace(/%([^0-9A-Z]{2})/g, '%25$1'));
var reg = null,
formatted = '',
pad = 0,