对象1:
var string1 = {
"jobroleid": "1",
"technologyid": "1",
"jobrole": "SOFTWARE DEVELOPER",
"technology": "DOTNET",
"yoc": [],
"degree": [],
"gender": ["Female"],
"credit": [],
"minqp": "6",
"maxqp": "7"
};
对象2:
var string2={'name':'hai'};
如何合并这两个对象?
预期产出:
[{
"jobroleid": "1",
"technologyid": "1",
"jobrole": "SOFTWARE DEVELOPER",
"technology": "DOTNET",
"yoc": [],
"degree": [],
"gender": ["Female"],
"credit": [],
"minqp": "6",
"maxqp": "7",
"name": "hai"
}]