Combine results of multiple ajax-requests
As some others have commented here will need some code samples to get a bit more specific but a thought off the top of my head:
You could construct a global array of arrays that you feed you "type b" arrays into as they are returned from the ajax call. Would look something like this:
//Define this outside your function scope
var typeBArrays = new Array();
function someAjaxCallback(typeBArray){
typeBArrays[typeBArrays.length] = typeBArray;
}
So when your processing is done you can access the typeBArrays array and have all your returned arrays.
精彩评论