今天闲着没事干,随便码了几行,项目地址:https://word.weiyuezhe.com/



  我起初的弹窗是sweetalret.....
  然后分享给群友,竟然说弹窗反人类设计......
  最后一位群友推荐了IZITOAST弹窗......
下边是Bootcdn提供的公共库。

<link href="https://cdn.bootcdn.net/ajax/libs/izitoast/1.4.0/css/iziToast.min.css" rel="stylesheet">
<script src="https://cdn.bootcdn.net/ajax/libs/izitoast/1.4.0/js/iziToast.min.js"></script>

常用代码示例:

iziToast.info({
    title: 'Hello',
    message: 'Welcome!',
});
iziToast.success({
    title: 'OK',
    message: 'Successfully inserted record!',
});

用法跟正常的Alret弹窗并无太大区别......