javascript - app里用户提交的数据(留言等)可以导出成Excel吗?用什么方法实现?
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-05-16 13:07:24
0
4
570

今天领导给我负责策划的app提了一个要求:把app用户留言的工作信息在手机里能导出,并且是Excel的;
表示从没见过这种功能;实在是不知道怎么实现; 有谁有经验给个大致方法 感谢!!!

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(4)
刘奇

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

PHPzhong

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

刘奇

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

伊谢尔伦

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!