$('#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);
Run Code Online (Sandbox Code Playgroud)
我使用.load()函数加载多个php文件.所有文件都加载了一段时间但是php文件没有加载一次他的负载一个接一个..所以PLZ怎么样???
ob_start();
require_once '\dompdf\autoload.inc.php';
use Dompdf\Dompdf;
//use Dompdf\Dompdf;
// instantiate and use the dompdf class
$dompdf = new DOMPDF();
$html = "
print_r($_POST);
";
$dompdf->loadHtml($html);
$dompdf->setPaper('A4', 'landscape');
$dompdf->render();
$pdf = $dompdf->output();
file_put_contents("page.pdf", $pdf);
?>
<a href="./page.pdf" download="page.pdf">Download the pdf</a>
<?php
exit;
?>
Run Code Online (Sandbox Code Playgroud)
我尝试做可下载的PDF脚本,但解析错误。