我有一个这样Array
的:Objects
manualInputHeaders = [
{text: 'Store No', title: 'Enter Destination Store Number'},
{text: 'Promise Date', title: 'Enter promise ship data', classes: {classAdditions: 'tooltipInput'}}
]
我正在尝试设置
manualInputHeaders[0].classes.classAdditions = 'setMe'
但是,chrome 控制台提供:
Uncaught TypeError: Cannot set property 'classAdditions' of undefined
如何设置一个Object
内的属性Array
?