那是因为在执行 repeat 的时候 ng-model 尚未有值 ,你可以发现空白的那个option中会有一个 value="?"
给一个初始化话的值就好了
$scope.currenttype=$scope.roles[0];
原文链接:https://segmentfault.com/q/1010000003898897/a-1020000003898963
那是因为在执行 repeat 的时候 ng-model 尚未有值 ,你可以发现空白的那个option中会有一个 value="?"
给一个初始化话的值就好了
$scope.currenttype=$scope.roles[0];
原文链接:https://segmentfault.com/q/1010000003898897/a-1020000003898963
小渔民
这个人很懒,什么都没留下
文章评论