The realization idea of exporting excel table with the separation of front and rear ends

after the front end clicks the export button to send the request for exporting the form to the background, the background returns the form to the front end
the front end is developed using vue.js, and the background development language is php

Php
Mar.12,2021

send the request parameters to the background, and the background generates a file link or file response to you. Then use window.open to open this link


decoupling the Excel export from the front and rear ends to recommend a previously used component, SpreadJS.
1.SpreadJS, which is pure front-end, has no coupling with the back-end, and can be completely combined with any background.
2. VUE
3 is supported. Provides pure front-end export, which converts Excel into Excel blob stream and downloads it

Menu