且构网

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

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

更新时间:2022-12-07 21:47:08

您需要添加其他参数:

$http.get(url).then(
    function(response) {
        console.log('get',response)
    },
    function(data) {
        // Handle error here
    })