<ul ng-repeat="item in city" repeat-done="cityFinish()">
<li class="city city{{$index}}">{{item}}</li>
</ul> $scope.cityFinish = function() {
$('.city').css('background', 'red');
$('.city1').css('background', 'green');
};其中 $('.city').css('background', 'red');有效,但是$('.city1').css('background', 'green');无效,这是什么原因?
慕沐林林
随时随地看视频慕课网APP
相关分类