更新时间:2022-12-07 21:37:23
您需要添加一个额外的参数:
You need to add an additional parameter:
$http.get(url).then( function(response) { console.log('get',response) }, function(data) { // Handle error here })
AngularJS http get 中的错误处理然后构造
AngularJS http get中的错误处理然后构造