小编Piy*_*edi的帖子

如何逐个加载php文件?

  $('#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怎么样???

javascript jquery

6
推荐指数
1
解决办法
50
查看次数

解析错误:语法错误,在线C:\ wamp \ www \ calculater \ wp-content \ themes \ calculater \ page.php中出现意外的“使用”(T_USE)

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脚本,但解析错误。

php wordpress namespaces syntax-error

0
推荐指数
1
解决办法
4850
查看次数

标签 统计

javascript ×1

jquery ×1

namespaces ×1

php ×1

syntax-error ×1

wordpress ×1