phpAdmin6.0 background export data to excel

One of the pits of phpAdmin6.0 background export data to excel:

 

To successfully export data to excel sheet, two conditions must be met:

1. Front-end code:

The front-end js part of this back-end, because js receives the data returned from the back-end, the data must be in the json data format, otherwise the data cannot be exported, it will only keep going in circles, I am a php back-end, not very proficient in the front-end, so I do the project Time stuck here wasting a lot of time.

 

2. Next is the interface part of the backend. The data returned by the interface to the front end must be in json format:

I am a php backend and I am not familiar with the front desk, so I write down the pits encountered in this development, so that my colleagues do not encounter such pits like me when developing, and waste too much time. thank!

 

Guess you like

Origin blog.csdn.net/qq_41441669/article/details/112000754