重要知识点angularjs $http.get 和 $http.post 传递参数(!!!格式不一样!!!!)

$http.get请求数据的格式

     $http.get(URL,{  
        params: {  
            "id":id  
        }  
    })  
    .success(function(response, status, headers, config){  
          
    })  

$http.post请求数据的格式

     $http.post(URL,{  
        "id":id  
    })  
    .success(function(response, status, headers, config){  
      
    })  

猜你喜欢

转载自www.cnblogs.com/qqhfeng/p/11404537.html
今日推荐