Toastr 通知在成功函数内部不起作用(Angular JS 1.6.6)
Toastr Notification not working inside of success function ( Angular JS 1.6.6 )
出于某种原因,当我尝试在下面的数据服务成功函数中创建 toastr 通知时,它们不起作用,但如果我将它们从中取出,它们就可以了。任何想法为什么以及如何修复这个?谢谢你的时间。
Angular 1.6 没有 success 函数: 像下面这样使用它:
$http({
url: urlToServer,
method: "POST",
//cache: false,
data: jQuery.param(dataObj),
headers: {'Content-Type': 'application/x-www-form-urlencoded'}
}).then(function (res){
alert("success", "Hoorey", "Verified");
},function (error){
alert("warning", "Oops!", "Could NOT Login");
});
出于某种原因,当我尝试在下面的数据服务成功函数中创建 toastr 通知时,它们不起作用,但如果我将它们从中取出,它们就可以了。任何想法为什么以及如何修复这个?谢谢你的时间。
Angular 1.6 没有 success 函数: 像下面这样使用它:
$http({
url: urlToServer,
method: "POST",
//cache: false,
data: jQuery.param(dataObj),
headers: {'Content-Type': 'application/x-www-form-urlencoded'}
}).then(function (res){
alert("success", "Hoorey", "Verified");
},function (error){
alert("warning", "Oops!", "Could NOT Login");
});