如何在angular中使用$http.put, $http.post
访问量: 2735
refer to: http://victorblog.com/2012/12/20/make-angularjs-http-service-behave-like-jquery-ajax/
$http({ method: 'POST', url: url, data: $.param({fkey: "key"}), headers: {'Content-Type': 'application/x-www-form-urlencoded'} })