如何在javascript中合并2个对象
这个问题在这里已经有了答案:
response = {
"data": [
{
"id": "203",
"bench": "abc"
},
{
"id": "205",
"bench": "def"
}
],
"responseCode": 200,
"isSuccess": "true"
};
response.data.unshift({
"id": "0",
"bench": "Select bench"
});
console.log(response); // shows json object
链接地址: http://www.djcxy.com/p/19363.html