更新时间:2020-08-19 00:12:17
默认调用:
alert('请打开麦克风')支持多参数:
alert({
title: '我是标题',
content: '请打开麦克风',
doneText: '按钮文字'
}).then(callback)默认调用:
confirm('请打开麦克风')传递参数:
confirm({
title: '我是标题',
content: '请打开麦克风',
doneText: '确认按钮文字',
cancalText: '取消按钮文字'
}).then(() => {
console.log('已确认')
}).catch(() => {
console.log('已取消')
})默认调用:
toast('请打开麦克风')设置停留时间和icon图标:
toast({
time: 3000,
content: '停留3秒再消失',
type: 'loading'
})