且构网

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

Angularjs - $http 成功 vs then

更新时间:2023-01-23 18:02:34

.then().sucess() 都是指 promise 异步运行并等待对于响应,如果它满足您的请求,则 resolve 否则 reject 它.

Both .then() and .sucess() are refer to promise it run asynchronously and wait for the response if it fullfied your request then resolve it otherwise reject it.

.success.error 已弃用,您可以在文档中找到更多详细信息

.success and .error are deprecated you can find more details on documentation