$('#demo').html('<img src="/parcel-pricer/img/ajax-loader.gif" style="margin-left:50px;width:20%;margin-bottom:10px;">');
$('#demo').show();
$('#demo').load('fast.php?send='+send+'&delv='+delv+'&quant='+quant+'&weight='+weight+'&length='+length+'&width='+width+'&height='+height+'&send1='+send1+'&delv1='+delv1+'&value='+value+'&country_send='+country_send+'&country_delv='+country_delv);
$('#demo1').html('<img src="/parcel-pricer/img/ajax-loader.gif" style="margin-left:50px;width:20%;margin-bottom:10px;">');
$('#demo1').show();
$('#demo1').load('Timed.php?send='+send+'&delv='+delv+'&quant='+quant+'&weight='+weight+'&length='+length+'&width='+width+'&height='+height+'&send1='+send1+'&delv1='+delv1+'&value='+value+'&country_send='+country_send+'&country_delv='+country_delv);
我使用.load()函数加载多个php文件。所有文件都加载了一段时间但是php文件没有加载一次他的负载一个接一个..所以PLZ怎么样???
答案 0 :(得分:6)
尝试使用 callbacks ,如:
//load to first target div
$( "#target_1" ).load( "url_1", function() {
//load to second target div
$( "#target_2" ).load( "url_2", function() {
... and so on if any
});
});