内容来源于 Stack Overflow,并遵循CC BY-SA 3.0许可协议进行翻译与使用
有没有alert
和confirm
中提供的对话框,其中包含自定义标题和自定义内容。我已经搜索了很多网站,但找不到合适的。
尝试使用SweetAlert 它只是最好的。
sweetAlert(
{
title: "Are you sure?",
text: "You will not be able to recover this imaginary file!",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, delete it!"
},
deleteIt()
);