toastr.options

来源:互联网 发布:plc编程自制功能块 编辑:程序博客网 时间:2024/06/05 05:53
  1. $(function () {  
  2.   
  3.         $('#showtoast').click(function () {  
  4.   
  5.             toastr.options = {  
  6.   
  7.                 closeButton: false,  
  8.                 debug: false,  
  9.                 progressBar: false,  
  10.                 positionClass: "toast-top-right",  
  11.                 onclick: null,  
  12.                 showDuration: "300",  
  13.                 hideDuration: "1000",  
  14.                 timeOut: "5000",  
  15.                 extendedTimeOut: "1000",  
  16.                 showEasing: "swing",  
  17.                 hideEasing: "linear",  
  18.                 showMethod: "fadeIn",  
  19.                 hideMethod: "fadeOut"  
  20.             };  
  21.   
  22.             var $toast = toastr['error']('123', 'title');  
  23. // toastr.success(result.//toastr.error(result.Message, result.Title);
  24.   
  25.         });  
  26.   
  27.     })  
0 0
原创粉丝点击