投稿するか削除するかは関係ありません..私はこれを書きます:
$http({
method: ''
url: '',
data: '',
headers: ''
}).success(function(data, status, headers, config) {
//whatever happens on success
}).error(function(data, status, headers, config) {
//whatever happens on failure
});
上記を行うこととこれを行うことの違いは何ですか:
$http({
method: ''
url: '',
data: '',
headers: ''
}).then(function(response) {
//success
},
function(response) {
//failed
};
一方には他方よりも利点がありますか?後に登場したもので、大きな違いはありませんか?違いを本当に知りたいだけで、人々が何を好むのか、そしてその理由.