Is there any established URL scheme for browser local storage and IndexedDB?

时间:2018-04-20 21:19:31

标签: javascript url browser local-storage indexeddb

I'm working on a JavaScript library that can save some artifacts from the browser via multiple saving routes, including browser's local storage and IndexedDB, HTTP requests to servers etc., the disk (in the case of node.js). I feel it would be nice if all these saving routes can all be captured in a unified URL string with varying URL schemes. For HTTP requests and file, it is pretty clear what the URL scheme should be, however, I'm wondering if there are any existing, established URL schemes for local storage and IndexedDB. Please advise.

1 个答案:

答案 0 :(得分:0)

Blob网址仅在文档卸载事件之前生效(例如标签关闭)。

要查看数据表内容,您可以使用“应用程序”选项卡(开发人员工具)。 所以你不能做任何架构URL。

您可以为任何客户端数据库项目的每个项目创建blob URL,但在文档卸载之前,此URL将可用,并且您需要在每个文档加载时创建新URL

如果我正确理解你。