正则表达式最讨厌了 看不懂啥意思
代码语言:javascript复制dataType : "JSON",
success : function(json) {
var dataObj = eval(json);
for ( var i = 0, l = dataObj.length; i < l; i ) {
for ( var key in json[i]) {
if (json[i][key] == null) {
json[i][key] = "-";
}
if (json[i][key].indexOf("{") > -1) {
var reg = /[u4e00-u9fa5]/g;
json[i][key] = json[i][key].match(reg).join("");
}
}
}
}
参考博客 https://blog.csdn.net/yelin042/article/details/76982683