$http({
method:'post',
url:' ',
data:' '
}).success(function(req){
console.log(req):
})
前后台交互
<div ng-app="myapp" ng-controller="controllerName">
<input type="button" value="提交" ng-click="submit" />
</div>
<script>
anguler.module("myapp",[]).controller("controllerName",function($scope,$http){
$scope.submit=function(){
$http({
}).success(function(data){})