function parse(obj){ var str = JSON.stringify(obj); var dataObj = str.replace(/Name/g, "name"); var dataObj1 = dataObj.replace(/Value/g, "value"); var data = JSON.parse(dataObj1); return data; }
function parse(obj){ var str = JSON.stringify(obj); var dataObj = str.replace(/Name/g, "name"); var dataObj1 = dataObj.replace(/Value/g, "value"); var data = JSON.parse(dataObj1); return data; }
转载于:https://www.cnblogs.com/Smiled/p/7217199.html