依赖JQ, 只供参考: function getNewJson(json) { if(json.length > 0){ var newJson = [{}]; //定义JSON数组 $.each(json, function (index, obj) { newJson[index] = obj; //新增对象 }); return newJson; } return null; }
若本文章侵犯了您的著作权,请联系我删除 QQ:695898855
依赖JQ, 只供参考: function getNewJson(json) { if(json.length > 0){ var newJson = [{}]; //定义JSON数组 $.each(json, function (index, obj) { newJson[index] = obj; //新增对象 }); return newJson; } return null; }
若本文章侵犯了您的著作权,请联系我删除 QQ:695898855