Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个看起来像这样的数组 [名称:丰田,型号:凯美瑞],[名称:丰田,型号:卡罗拉]
选项名称,如果我选择一个丰田,订阅功能会触发两次。有人遇到这种情况吗?
您在每次订阅中获得的“新价值”是什么?
您可能有一个不正确的绑定,它设置了值,然后将其设置回列表中的第一个值,因为您选择的值无效。下拉菜单会发生这种情况,如果您应用一个新值,但它不在下拉列表中,它将被重置为下拉列表中的第一个值。
所以基本上,问题是您是否将其设置为下拉列表中有效的值?并且是否正在重置下拉值?