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