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.
我可以看到您在 sendJsonpRequestToGetMeanings 回调中设置了 expressionObject.selected,但是在 HTML 中,select ng-model 属性设置为“option.selected”,它并不指向您之前设置的值。我猜选择元素被 ng-repeat 指令包裹,并且“item”引用了当前的表达式对象。
所以你应该尝试改变:
ng-model="option.selected"
至
ng-model="item.selected"