Toast
options参数列表
- clas: “toast-wrap”,
- text: “”,
- outTime: 1500,
- fadeTime: 600,
- type: ‘toast’,
- btn: ‘好的’,
- callback: null,
eg1:默认 提示 ,1500s 自动关闭
1 |
var toast = new Toast({text:'确定要继续吗?'}); |
eg2:默认 提示 ,1500s 自动关闭
1 |
var toast = new Toast({text:'确定要继续吗?',type:'noToast',callback:afterToast}); |
Confirm
options参数列表
- clas: ‘confirm-wrap’,
- cover: true,
- title: ‘标题’,
- content: ‘正文’,
- cancel: ‘cancel’,
- sub: ‘ok’,
- html: ‘’,
- wrap: ‘modal-cover’,
- cancelCall: null,
- subCall: null,
eg1:
1 |
var confim = new Confirm({ |
有问题欢迎issue 戳 gitHub
近期评论