简体   繁体   English

仅使用JavaScript将数据存储在任何文件中?

[英]Storing data in any file using only JavaScript?

I have written a mobile application to fetch Accelerometer data from TI CC2650STK in evothings. 我编写了一个移动应用程序,以从TI CC2650STK中获取加速度计数据。 I am thinking of storing the data in some text file if I am offline and then when I come online the app will forward that data to my server. 如果我离线,我正在考虑将数据存储在一些文本文件中,然后当我上线时,应用程序会将这些数据转发到我的服务器。 Is it possible? 可能吗? If yes How??? 如果是,怎么办???

I have managed to do it via cordova-plugin-file. 我设法通过cordova-plugin-file做到了。 Attached is the link cordova-plugin-file usage 附件为Cordova插件文件链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM