1、前端:

Ajax.call('order.php?act=export', params, function (data) {
          document.getElementById("export").disabled = false;
          document.getElementById("export").value = "导出到Excel";
          document.location.href = (data.url);
      }, 'POST', 'JSON');

2、后端:

$response = array('url' => $fileName,'success'=>true);
echo json_encode($response);

 

相关文章:

  • 2022-12-23
  • 2022-01-12
  • 2021-12-22
  • 2021-11-16
  • 2022-12-23
  • 2021-04-29
  • 2022-12-23
  • 2021-06-07
猜你喜欢
  • 2022-12-23
  • 2021-08-08
  • 2021-11-17
  • 2021-10-14
  • 2022-01-01
  • 2021-08-21
  • 2021-12-08
相关资源
相似解决方案