新手问题,如何/在哪里存储我的数据为chrome插件(有文件夹,备注和书签) [英] Newbie question, how/where to store my data for a chrome plugin (having folders, notes & bookmarks)

查看:120
本文介绍了新手问题,如何/在哪里存储我的数据为chrome插件(有文件夹,备注和书签)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新手问题 - 我之前从未创建过Chrome插件。我也不是程序员。但是试图创建一个插件,里面有文件夹,子文件夹,(纯文本)笔记和书签..我认为它可行。



那么什么是存储所有这些数据的最佳方式?我可以将它存储在chrome.storage中吗?我看到另一个插件使用sql存储'NOTES'数据。什么是标准做法?我应该如何/在哪里存储所有这些数据(关于文件夹,子文件夹,注释和URL书签)?

解决方案

Chrome存储将是默认存储,可以是用于在登录用户的计算机之间同步信息。 https://developer.chrome.com/extensions/storage [ ^ ]请记住,chrome存储确实有数据限制,我认为本地存储为5MB,同步存储为100KB。 br />


除此之外,我认为您正在考虑需要使用API​​来存储数据的东西,可能在Google云端硬盘中,或者使用App Engine后端,或者Parse.com。也许

Newbie question - I have never created a chrome plugin before this. Nor am I a programmer. But attempting to create a plugin which will have folders, sub-folders, (plain-text) notes and bookmarks.. I think its doable.

So what is the best way to store all this data? Can I just store it in chrome.storage? I saw another plugin storing 'NOTES' data using sql. What is the standard practice? How/where should I store all this data (about folders, sub-folders, notes & URL bookmarks)?

解决方案

Chrome storage would be the default, and can be used to sync information between computers for a logged in user. https://developer.chrome.com/extensions/storage[^]Bear in mind too that chrome storage does have data limits, I think 5MB for local storage and 100KB for sync storage.

Aside from that, i think you're looking at needing something you can access with an API to store data, maybe in Google Drive, or using an App Engine backend, or Parse.com. perhaps.


这篇关于新手问题,如何/在哪里存储我的数据为chrome插件(有文件夹,备注和书签)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆