search

Home  >  Q&A  >  body text

javascript - Can the data submitted by users in the app (messages, etc.) be exported to Excel? What method is used to achieve this?

Today, the leader made a request to the app I am responsible for planning: the work information left by app users can be exported to the mobile phone, and it is in Excel;
I said I have never seen such a function; I really don’t know How to achieve it; Does anyone have experience and can give me a general method? Thanks! ! !

曾经蜡笔没有小新曾经蜡笔没有小新2759 days ago590

reply all(4)I'll reply

  • 怪我咯

    怪我咯2017-05-16 13:09:24

    It mainly depends on how the content of user messages is stored. In most cases it should be json. Use some framework to convert json into csv format, and you can use it in excel

    The following library can convert jsoncsv
    json2csv

    reply
    0
  • PHPz

    PHPz2017-05-16 13:09:24

    We can understand it as downloading. The backend generates an excel table and provides a download interface to the frontend. That’s it.

    reply
    0
  • 怪我咯

    怪我咯2017-05-16 13:09:24

    https://www.npmjs.com/package...

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-16 13:09:24

    As long as you can get the data, you can export it

    reply
    0
  • Cancelreply