$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){  
      
    })  

 

posted on 2019-08-24 14:15  qqhfeng16  阅读(3350)  评论(0编辑  收藏  举报