setNullToEmpty: function (obj) {
var _this = this;
$.each(obj, function (index, data) {
if (Object.prototype.toString.call(data) == '[object Object]' || Object.prototype.toString.call(data) == '[object Array]') {
_this.setNullToEmpty(data);
} else {
if (obj[index] === 'null' || obj[index] === null) {
obj[index] = '';
}
}
});
},
网友评论