Home > front end >  Front sends a request to the background, the background after the export file, returned to the front
Front sends a request to the background, the background after the export file, returned to the front

Time:02-26

Such as title, the background now export file after operation, and will be returned to the front, but using the Windows. The location. The href will jump to a new page, using ajax requests the background can't export file, is there any solution that you requested

CodePudding user response:

The function downloadPoint (goodId, batchId) {
The console. The log (" into the export method ");
Window. The location. Href="https://bbs.csdn.net/carmiMange/exportCarmi? BatchId="+ +" batchId & amp; GoodId="+ goodId;
SetTimeout (function () {
Window. The location. Reload (true);
}, 1000);
}

I am so written, now is if can export, the export will successfully exported, unable to export will jump to a new page, the return value of a new page displays the background
  • Related