On bootbox documentation is stated that:
bootbox.alert(str message, fn callback)
where message = Default button text and callback = callback invoked on dismissal
If I understood that well, the callback function should be executed when the alert is closed, but when I use this code in the form of bootbox.alert("test message", alert("callback"))
the callback alert pops up when invoking the bootbox, not on closure. What I'm doing wrong?
尝试这个:
bootbox.alert("test msg", function () { alert("callback here"); })
bootbox.alert("test message!", function() {
alert("callback!");
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.