当代码试图到达DOM中的一个元素时,我遇到了问题,这个元素是在ng-if之前被删除的<div class="col-md-9" id="map-container" ng-if="$scope.loadMap (controller.js:208) at angular-resource.js:643
at angular.<e
Im试图通过使用filter函数从'state‘中删除一个元素,该函数应该在'action.index’指定的索引处从'state‘数组中删除元素。但是,相反,它从'state‘数组中删除了最后一个元素,我似乎不知道它为什么要这样做。/reducer.js ADD_ITEM,} from '.== action.index);