0
我使用toastr來在我的網頁上敬酒通知。如果單擊鏈接,如何關閉所有打開的郵件。如何使用jQuery單擊錨點關閉所有toastr消息?
我使用toastr來在我的網頁上敬酒通知。如果單擊鏈接,如何關閉所有打開的郵件。如何使用jQuery單擊錨點關閉所有toastr消息?
檢查您是否定義了toastr
全局對象。
console.log(!!window.toastr);
,如果你擁有它,你可以使用toastr.clear();
$('a.myLinkClass').click(function() {
window.toastr.clear();
});