我想作出一個條件,併爲每個(Sweetalert2)稱爲swal。但是隻有一個swal運行。我該怎麼做? function validateEmail(email) {
var regex = /\[email protected]\S+\.\S+/;
return regex.test(email);
}
function validateBirth(data) {
我在我的項目中使用ngSweetAlert。 除了當我添加showCancelButton: true屬性時,它完美的工作。 事實上,例如: SweetAlert.swal({
title: "Are you sure?",
text: "Your will not be able to recover this imaginary file!",
type: "wa
我有了這個功能用戶按下刪除後遊戲復位,然後再按下OK 。 function confirmReset() {
swal({
title: "Are you sure you want to reset your game?", text: "You will not be able to recover your game!",
type: "warning"