去除全局null


let datas = JSON.stringify(dataObj);

dataObj = JSON.parse(datas.replace(/:null/g, ':""'));

猜你喜欢

转载自blog.csdn.net/weixin_45264424/article/details/108367617