JSON.stringify(result); 方法将JavaScript值转换为JSON字符串
var result = []; result.push({ "id":"1", "name":"阿刚", "age":"19", "destination":"new job" }); var parts = JSON.stringify(result); console.log(result)