<div ng-repeat="item in dataList" ng-click="func($index,$index-1)"></div>
$scope.func = function(thisIndex,preIndex){
  var thisIndexDataName = $scope.dataList[thisIndex].dataName;//当前这条数据对应dataName
  var preIndexDataName = $scope.dataList[preIndex].dataName;//上一条数据里对应的dataName
}

 

相关文章:

  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
  • 2021-10-13
猜你喜欢
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案