向mdbootstrap javascript警报添加选项

向mdbootstrap javascript警报添加选项,javascript,jquery,twitter-bootstrap,Javascript,Jquery,Twitter Bootstrap,我这里有一个引导警报的基本示例 <a class="btn btn-info btn-lg" id="alert-target" >Click me!</a> 如何将这些选项添加到javascript 这就是为什么我的提醒不显示的原因吗 toastr.options = { "closeButton": true, // true/false "debug": false, // true/false "newestOnTop": false,

我这里有一个引导警报的基本示例

<a class="btn btn-info btn-lg" id="alert-target" >Click me!</a>
如何将这些选项添加到javascript

这就是为什么我的提醒不显示的原因吗

toastr.options = {
    "closeButton": true, // true/false
    "debug": false, // true/false
    "newestOnTop": false, // true/false
    "progressBar": false, // true/false
    "positionClass": "toast-top-right", // toast-top-right / toast-top-left / toast-bottom-right / toast-bottom-left
    "preventDuplicates": false, true/false
    "onclick": null,
    "showDuration": "300", // in milliseconds
    "hideDuration": "1000", // in milliseconds
    "timeOut": "5000", // in milliseconds
    "extendedTimeOut": "1000", // in milliseconds
    "showEasing": "swing",
    "hideEasing": "linear",
    "showMethod": "fadeIn",
    "hideMethod": "fadeOut"
}
参考文献|

仅供参考:我无法上载外部资源链接,因为它仅存在于mdbootstrap下载中。这就是为什么我不能创建JSFIDLE演示

toastr.options = {
    "closeButton": true, // true/false
    "debug": false, // true/false
    "newestOnTop": false, // true/false
    "progressBar": false, // true/false
    "positionClass": "toast-top-right", // toast-top-right / toast-top-left / toast-bottom-right / toast-bottom-left
    "preventDuplicates": false, true/false
    "onclick": null,
    "showDuration": "300", // in milliseconds
    "hideDuration": "1000", // in milliseconds
    "timeOut": "5000", // in milliseconds
    "extendedTimeOut": "1000", // in milliseconds
    "showEasing": "swing",
    "hideEasing": "linear",
    "showMethod": "fadeIn",
    "hideMethod": "fadeOut"
}