The final result does not generate a table and download it, only garbled characters appear on the console. I don’t know the reason? Asking God for advice?
Confirm whether the two libraries imported by the vendor are loaded. In addition, this process is encapsulated. Most scenarios are to export a two-dimensional associative array to excel. Logically speaking, the parameters only need a two-dimensional array [must] and some of your own custom parameters. config configuration array parameters [optional] There may be table title, author time, etc.
replyIt's a bunch of letters. You can't add pictures in the reply area. There are no pictures. It was originally a bunch of garbled characters. After I added ob_end_clean(), it turned into a bunch of letters. It should be encoding. These things always appear, but no substance is generated. Excel table. A bunch of letters look like this: 0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAOwADAP7/CQAGAAAAAAAAAAAAAAAAABAAAABQAAAAAAAAAAEAAAAAAAAAEAAAD+////AAAAAAYAAAD////
Confirm whether the two libraries imported by the vendor are loaded. In addition, this process is encapsulated. Most scenarios are to export a two-dimensional associative array to excel. Logically speaking, the parameters only need a two-dimensional array [must] and some of your own custom parameters. config configuration array parameters [optional] There may be table title, author time, etc.
Let’s take a look at what specific error message the console reports.