js数组转成对象 $scope.addalerts = []; $scope.addalertsString = JSON.stringify($scope.addalerts); 全部教程http://each.sinaapp.com/angular/index.html