Important points angularjs $ http.get and $ pass parameters http.post (!!! format is not the same !!!!)

$ Http.get request format data

 

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

 

$ Http.post request format data

 

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

 

Guess you like

Origin www.cnblogs.com/qqhfeng/p/11404537.html