Recently work too busy, to use Django refactoring two systems at the same time, both front and back are my one person to write, front-end to design a large number of forms, the backend to deal with a large number of data, physically and mentally exhausted Ah! Weekends are not free, half a month did not write a blog, today is not in the mood to work overtime, make time to write this half-month accumulated technical experience.
Because the development of the system is to serve the hotel, the need for regular and hotel reconciliation, so to export the table as a execl table, which requires a simple, in the front-end to write JS code on the line, and then change the demand, execl not, will be human changes, to export to PDF, Also to each page with the company's logo and other miscellaneous things, no way, only to go to GitHub to see if there are good third-party plug-ins, and really let me find, this is the article's male and female owners: Jspdf and Html2canvas
Export a page form to PDF via front-end JS