标签:ESS err UNC code com close smis can fir
以前也用过,那个时候没有写过,突然看见了,就写上了.
网址:http://mishengqiang.com/sweetalert2/
swal({ title: ‘确定删除吗?‘, text: ‘你将无法恢复它!‘, type: ‘warning‘, showCancelButton: true, confirmButtonColor: ‘#3085d6‘, cancelButtonColor: ‘#d33‘, confirmButtonText: ‘确定删除!‘, cancelButtonText: ‘取消删除!‘, confirmButtonClass: ‘btn btn-success‘, cancelButtonClass: ‘btn btn-danger‘, buttonsStyling: false }).then(function() { swal( ‘已删除!‘, ‘你的文件已经被删除。‘, ‘success‘ ); }, function(dismiss) { // dismiss的值可以是‘cancel‘, ‘overlay‘, // ‘close‘, ‘timer‘ if (dismiss === ‘cancel‘) { swal( ‘已取消!‘, ‘你的虚拟文件是安全的:)‘, ‘error‘ ); } })
标签:ESS err UNC code com close smis can fir
原文地址:https://www.cnblogs.com/wxxf/p/9918052.html