<button onclick="toastr['success']('成功啦!', '成功');">成功</button><br>
<button onclick="toastr['info']('資訊來囉!', '資訊');">資訊</button><br>
<button onclick="toastr['warning']('被警告了!', '警告');">警告</button><br>
<button onclick="toastr['error']('有什麼錯誤了!', '錯誤');">錯誤</button><br>
toastr.options = {
closeButton: true,
debug: false,
newestOnTop: false,
progressBar: true,
positionClass: "toast-top-right",
preventDuplicates: false,
onclick: null,
showDuration: "300",
hideDuration: "1000",
timeOut: "5000",
extendedTimeOut: "1000",
showEasing: "swing",
hideEasing: "linear",
showMethod: "fadeIn",
hideMethod: "fadeOut"
};