当使用DataTable做删除等操作时会有刷新列表,但不刷新页面的情况
此时调用loadTable();,而不是location.reload();
function refreshTable(){
$('#dataSet_table').dataTable().fnDestroy();loadTable();
};
//location.reload();
if(data.success) {
$.fn.showSuccess("操作成功");
refreshTable();
} else {
$.fn.showError(data.data.errorMessage);
}