has an array of $scope.lottery
with two variables ID and score
now you keep getting data from the server"s interface, and you want to keep changing the score in the array. If you operate.
an array is easy to operate when there is only one array. It can be emptied directly in push
but if there are many groups of data in the array, how to update each score to, headache