0
我有一個對象數組:發送數據到另一個數組對象
hm.push(member.personal);
console.log("New input: " + ko.toJSON(hm));
server.insertPersonalInformacion(ko.toJS(hm));
CONSOLE.LOG輸出:
[{
"personalInfo": {},
"adresaInfo": {},
"Telefone": [{
numer1: ,
callNumb:
}],
"Mobile": [{}],
"emailAdrese": [{
email:
}]
}]
現在我想這個數組對象放到另一個對象:
var insertPersonalInformacion = function(inputInfo) {
memberData.personal.forEach(function(p) {
p.personalInfo.push(inputInfo);
"And here i am lost"
);
});
});
};
這是調用對象
var memberData = {
personal: [{
"personalInfo": {},
"adresaInfo": {},
"Telefone": [{
numer1: ,
callNumb:
}],
"Mobile": [{}],
"emailAdrese": [{
email:
}]
}]
};