【发布时间】:2017-02-23 05:49:02
【问题描述】:
我正在使用 javascript sweetalert2 库。
我想从警告框中删除确定按钮,但我没有找到不显示此按钮的任何属性。
我正在使用计时器属性timer:1000 在一秒钟内关闭警报。
所以,我认为在这件事上没有使用确定按钮。
【问题讨论】:
-
在您的配置中设置
showConfirmButton:false。 Link to the Documentation -
swal({ content: 'Hello Test', button: false, })
标签: javascript jquery sweetalert sweetalert2