我有如下所示的结构:更新JavaScript对象属性?
skillet.person = {
name: {
first: '',
last: ''
},
age: {
current: ''
},
birthday: {
day: '',
month: '',
year: ''
}
}
我不知道我怎么会更新这些值?即我虽然以下是正确的
skillet.person.name.push({ first: 'blah', last: 'ha'});
但它是错的?我怎样才能解决这个问题 ?
MDN有很大的JavaScript教程,为应对特别是https://developer.mozilla.org/en/JavaScript/Guide/Working_with_Objects – 2012-02-26 16:45:20