重要知识点angularjs $http.get 和 $http.post 传递参数(!!!格式不一样!!!!)
时间:2019-08-24 15:22:59
收藏:0
阅读:107
$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){ })
原文:https://www.cnblogs.com/qqhfeng/p/11404537.html
评论(0)