84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
$scope.pageNum == 1 ? $log.debug($scope.pageNum) : $scope.pageNum = 1;getList();这样写,不管是不是1,都会执行getList();有没有办法让三目运算在不等于1的时候,执行$scope.pageNum = 1;getList();这两句。
$scope.pageNum == 1 ? $log.debug($scope.pageNum) : $scope.pageNum = 1 && getList()
$scope.pageNum == 1 ? $log.debug($scope.pageNum) : $scope.pageNum = 1 && getList()