<select ng-change="updateFirmTimeZone(timeZoneId)" ng-model="timeZoneId" ng-options="timeZoneId as tz.offset for tz in availableTimezones"></select>
此updateFirmTimeZone(timeZoneId)
未调用。如何为选择提供行动?任何其他建议。请更新。提前谢谢。
答案 0 :(得分:1)
tz.id as tz.offset for tz in availableTimezones
或
tz.timeZoneId as tz.offset for tz in availableTimezones
而不是
`timeZoneId as tz.offset for tz in availableTimezones`
<强> HTML:强>
<select ng-change="updateFirmTimeZone(timeZoneId)" ng-model="timeZoneId" ng-options="tz.id as tz.offset for tz in availableTimezones"></select>