$http有点不太明白
function(name,path){}方法中的参数都没见用到,那是怎么请求的呢?
function(name,path){}方法中的参数都没见用到,那是怎么请求的呢?
2015-08-18
$http({method: 'GET', url: '/someUrl'}).
success(function(data, status, headers, config) {
// this callback will be called asynchronously
// when the response is available
}).
error(function(data, status, headers, config) {
// called asynchronously if an error occurs
// or server returns response with an error status.
});根据官方文档是这样的,传入的参数没用到有可能是在用的时候已经写死了,注意看method和url即可。
举报