1 回答

TA貢獻1770條經驗 獲得超3個贊
這對你有用嗎?
Swal.fire({
title: "Insert the confermation code we sent you via-mail",
input: "text",
}).then((result) => {
// get DatabaseCode
if (result == DatabaseCode) {
//code matched database code
const answer = result.value;
} else {
Swal.fire({
title: "Codes don't match",
icon: "error",
});
}
});
或這個
Swal.fire({
text:
"user, check the mail we sent to [email protected] to confirm your account",
icon: "question",
}).then(() => {
Swal.fire({
title: "Insert the confermation code we sent you via-mail",
input: "text",
}).then((result) => {
// get DatabaseCode
if (result == DatabaseCode) {
//code matched database code
const answer = result.value;
} else {
Swal.fire({
title: "Codes don't match",
icon: "error",
});
}
});
});
- 1 回答
- 0 關注
- 167 瀏覽
添加回答
舉報