问题描述
按下按钮后如何显示另一个带有成功消息的窗口? 在sweetalert2中
1楼
G. Verni
0
已采纳
2019-03-04 10:07:27
最简单的方法是在then
内调用另一个Swal。
最简单的示例是:
swal.fire({
title: 'Input Text',
input: 'text'
}).then(result => {
swal.fire(`You wrote: ${result.value}`)
})
在此示例中,先前模式返回的值将在新模式中重新使用。
您可以在找到大量示例。