$scope.addalerts = [];$scope.addalertsString = JSON.stringify($scope.addalerts);全部教程http://each.sinaapp.com/angular/index.html