JSON.stringify(data).replace(/"/g,"'");
data.replace(/'/g, '"');
原文出处 : https://blog.csdn.net/weixin_33845881/article/details/85861807