Home  >  Q&A  >  body text

javascript - Export page content as excel table


There is an export button on the page. Click the export button to export the table in the page content to an excel table. How to achieve this? Please give me some advice

淡淡烟草味淡淡烟草味2682 days ago576

reply all(2)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-19 10:23:58

    Node can read and write files. If you are not a node and only have js, you can try js-xlsx (https://github.com/SheetJS/js...). I just made a function to import and export excel, and I used this. The reference website is: http://www.jianshu.com/p/74d4... .

    reply
    0
  • PHPz

    PHPz2017-05-19 10:23:58

    Export to csv file, export the json of the page to csv and then use it directly in excel. json2csv

    reply
    0
  • Cancelreply