修复测试面板接口响应结果含百分数时报错的问题
This commit is contained in:
parent
fcf2ff4950
commit
05cd3fa95b
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue