为什么如果您在面板上选择一个评级值,然后更改模型和字段值选择。但是如果相反,选择select,那么面板评分上的重复值是不是发生了?
html代码:
<select name="post[vote][cinema]" ng-model="cinema" ng-change="set(cinema)">
<p class="dash ng-isolate-scope ng-valid ng-dirty" ng-mouseleave="reset()"
tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="10"
aria-valuenow="4" ng-model="cinema" max="max">
<a ng-repeat="r in range track by $index" ng-mouseenter="enter($index + 1)"
ng-click="rate($index + 1)" ng-class="{...}" class="ng-scope"></a>
小提琴:http: //jsfiddle.net/smtncL3q/1/