【发布时间】:2014-06-26 10:51:41
【问题描述】:
我正在尝试将 Toastr js 设置为某种对话框按钮。
我只需要我的 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");
有谁知道这是否可能或知道任何其他允许我这样做的脚本?
请注意
我知道这可以通过 Modal 完成,但我想尝试避免它。
【问题讨论】:
标签: javascript dialog toastr