我创建了一个简单的 javascript 警报
if (confirm('Are you sure you want to remove this item?')) {
swoosh(id, path+'swoosh_config/swoosh_delete_jobtitle', 'jobtitledv')
}
我将其更改为模态。
$('#delete').modal('show');
这是我的新警报
<div class="modal fade" id="delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-haspopup="true" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="alert alert-info fade in" id="alert">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4>Heads Up!</h4>
<p>What you are doing will delete a data!</p>
</div>
</div>
</div>
</div>
我将如何添加一个确认按钮,将我带到那个“swoosh”加上它的链接。?