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

Posted qqhfeng

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了重要知识点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)  
      
    )  

 

以上是关于重要知识点angularjs $http.get 和 $http.post 传递参数(!!!格式不一样!!!!)的主要内容,如果未能解决你的问题,请参考以下文章