我正在尝试设置Toastr js,使其成为一种对话框按钮。
我只需要在我的Toastr消息上有一个"批准"和一个"驳回"按钮。
我只需要在我的Toastr消息上有一个"批准"和一个"驳回"按钮。
toastr.options = {
"closeButton": true,
"debug": false,
"positionClass": "toast-bottom-left",
"onclick": null,
"showDuration": "1000",
"hideDuration": "1000",
"timeOut": "5000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
}
toastr.info("Do you wish to continue");
有人知道这是否可行,或者知道其他允许我做到这一点的脚本吗?
请注意:
我知道可以使用模态框来实现,但我想尝试避免它。