且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

AngularJS http get 中的错误处理然后构造

更新时间: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
    })