<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 }