toastr插件
引入js,css
<link href="https://cdn.bootcss.com/toastr.js/latest/css/toastr.min.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script> //注意一定要先引入jq
<script src="https://cdn.bootcss.com/toastr.js/latest/toastr.min.js"></script>
//a toast for info,success,warning,error
//toastr.info("toastr");
toastr.warning("toastr","标题测试呀呀呀呀",{timeOut: 5000});
//other function
toastr.remove()
toastr.clear()
//In case you want to escape HTML characters in title and message
toastr.options.escapeHtml = true;
//Close Button
toastr.opt