SweetAlert2:未知参数“ onbeopen”
我正在使用laravel 5.8和 sweetalert v2 ,我尝试在刀片上使用它发射此警报
Swal.fire({
title: '<h4 style="color: #0c5460;">Updating user status</h4>',
html: '<h5 style="color: #0c5460">Wait...</h5>',
width: 400,
padding: '1em',
background: '#fff url(/images/cream_pixels.png)',
timer: 1000,
onBeforeOpen: () => {
Swal.showLoading()
},
});
:弹出窗口正确但没有显示加载程序,并在控制台上向我显示了此错误:
sweetAlert2:未知参数“ onbeopen”
so这里出了什么问题?
I'm using Laravel 5.8 and Sweetalert v2 and I tried firing this alert with it at the Blade:
Swal.fire({
title: '<h4 style="color: #0c5460;">Updating user status</h4>',
html: '<h5 style="color: #0c5460">Wait...</h5>',
width: 400,
padding: '1em',
background: '#fff url(/images/cream_pixels.png)',
timer: 1000,
onBeforeOpen: () => {
Swal.showLoading()
},
});
And it popups properly but does not show the loader and shows me this error at the Console:
SweetAlert2: Unknown parameter "onBeforeOpen"
So what's going wrong here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 didopen :在屏幕上显示弹出窗口后,异步运行。提供弹出式DOM元素作为参数
Use didOpen: Asynchronously runs after the popup has been shown on screen. Provides popup DOM element as the argument