function showPromptMessage() {
swal({
title: "Describe your edit",
type: "input",
showCancelButton: true,
closeOnConfirm: false,
animation: "slide-from-top",
inputPlaceholder: "Write something"
}, function (inputValue) {
if (inputValue === false) return false;
if (inputValue === "") {
swal.showInputError("You need to write something!"); return false
}
swal("Saved successfully");
});
}
答案 0 :(得分:0)
添加到您的css:
h2.swal2-title{
color: blue;
/*Whatever you need*/
}
有关详细信息,请访问:https://limonte.github.io/sweetalert2/