【发布时间】:2017-01-27 08:44:16
【问题描述】:
我正在使用这个不错的插件 jquery-confirm v3.0.3 (http://craftpip.github.io/jquery-confirm/) 来确认操作
但是当使用下面的代码时,我的链接中的 href 操作在我按下 OK 按钮时没有执行?
我做错了什么?感谢您的帮助...
<a class="delItem" href="?del=true&id=1">Supprimer</a>
$('a.delItem').confirm({
title: 'Confirmer cette action',
content: '',
animation: 'left',
theme: 'light',
type: 'red',
autoClose: 'cancel|10000',
buttons: {
confirm: {
text: 'OK'
},
cancel: {
text: 'Annuler',
action: function () {
//$.alert('action is canceled');
}
}
}
});
【问题讨论】:
-
您的确认按钮应该设置一个动作吗?