我有一个如下所示的结构:
skillet.person = {
name: {
first: '',
last: ''
},
age: {
current: ''
},
birthday: {
day: '',
month: '',
year: ''
}
}
我在想如何更新这些数值?也就是说,我认为以下是正确的。
skillet.person.name.push({ first: 'blah', last: 'ha'});
但这是错的吗?我该如何修复这个问题?