javascript - sweetalert 2.0 showConfirmButton去掉后不显示任何按钮

jsf

2017-12-31T10:35:27Z||2017-12-31T10:35:27Z

sweetalert 2去掉了1.0的showConfirmButton属性。如果不需要任何按钮,sweetalert 1的写法是:

swal({
    title: "Question",
    showConfirmButton: false,
}

2的写法是:

swal({
    title: "Question",
    buttons: false,
}