I have the below piece of code:
我有以下代码:
$(document).ready( function(){
var rebuild = getParameterByName("rebuild");
var createdStructures = $('#AtoZContentDiv').children().length;
if ((rebuild !== undefined && rebuild !== null && rebuild.indexOf("true") === 0) || (createdStructures === 0))
{
// clean up pre-existing data
cleanUp();
// create container structure
createFormLinkContainers();
// Call SP web services to retrieve the information and create the A to Z
retrieveListData();
completeInitialization();
}
else
{
aggregateAll = jQuery.parseJSON($('#hdnAggregateAll').val());
aggregatePersonal = jQuery.parseJSON($('#hdnAggregatePersonal').val());
aggregateBusiness = jQuery.parseJSON($('#hdnAggregateBusiness').val());
ministryAggregate = jQuery.parseJSON($('#hdnMinistryAggregate').val());
caAggregate = jQuery.parseJSON($('#hdnCAAggregate').val());
sTaxAggregate = jQuery.parseJSON($('#hdnSTaxAggregate').val());
bTaxAggregate = jQuery.parseJSON($('#hdnBTaxAggregate').val());
leTaxAggregate = jQuery.parseJSON($('#hdnLETaxAggregate').val());
var type = getParameterByName("filter");
$( "#tab-all" ).click(function()
{
loadit('all');
});
$( "#tab-business" ).click(function()
{
loadit('business');
});
$( "#tab-personal" ).click(function()
{
});
$(document).on('click','#tab-personal',function(e){
loadit('personal');
});
buildFilterMenu();
loadit('all');
}
});
$(d