$scope.xiugai = function($index) {
$scope.xs = true;
$scope.nname = arr[$index].name;
$scope.aage = arr[$index].age;
$scope.ccity = arr[$index].city;
arr.i = $index;
$scope.baocun = function() {
arr[$index].name = $scope.nname;
arr[$index].age = $scope.aage;
arr[$index].city = $scope.ccity;
$scope.goods = arr;
$scope.xs = false;
}
}
$scope.xs = true;
$scope.nname = arr[$index].name;
$scope.aage = arr[$index].age;
$scope.ccity = arr[$index].city;
arr.i = $index;
$scope.baocun = function() {
arr[$index].name = $scope.nname;
arr[$index].age = $scope.aage;
arr[$index].city = $scope.ccity;
$scope.goods = arr;
$scope.xs = false;
}
}