[su_button url=”http://yanshi.sucainiu.com/demo/10322.html” target=”blank” style=”flat” background=”#ef8e2d” icon=”icon: paperclip” rel=”nofollow”]查看演示[/su_button]
兼容pc端和移动端的alert、message和toast弹窗插件,toast带有icon
默认调用:
alert('请打开麦克风')
支持多参数:
alert({
title: '我是标题',
content: '请打开麦克风',
doneText: '按钮文字'
}).then(callback)
默认调用:
confirm('请打开麦克风')
设置停留时间和icon图标:
toast({
time: 3000,
content: '停留3秒再消失',
type: 'loading'
})
原文链接:https://www.jocat.cn/archives/72252,转载请注明出处。