这是脚本代码。
$(function(){
$("#dialog_person_to_notify_form").dialog({
modal: true,
width: 'auto',
autoOpen: false
});
$("#add").click(function(){
$("#dialog_person_to_notify_form").dialog("open");
});
$("#add_person_to_notify").click(function(){
var data = $('#form_person_to_notify').serialize();
$.post('<?php echo base_url_l(); ?>hr/recruitment_tab/recruitment/person_to_notify_process',data,function(){
alert("Person to notify has been added!");
$("#dialog_person_to_notify_form").dialog("close");
$('#applicant-view-form-tabs').tabs('load',0);
});
});
});
现在我想出了问题。一旦该标签重新加载,该功能发生两次。如果该选项卡第三次重新加载。功能发生三次,如此等等。谁能帮我什么问题?我使用AJAX作为制表符。
这是我如何使用选项卡。
$(function(){
$('#tabs-finance').tabs({
});
});
有什么我应该做我的标签?