3. 为什么采用 FileSystem API
• 相比 LocalStorage 有更大的存储空间
• 生命周期更长
• API 更加丰富
• 由于标准不统一 Localdatabase 标准将来会
被 w3c 废除。
• IndexedDB----bdBrowser 目前不支持。
So , only Filesystem API
4. 原理
• Interacting with binary data and
organizing that data into a meaningful
hierarchy of folders.
• Applications cannot access another
domain/origin’s filesystem.
------ 《 Using the HTML5 Filesystem API 》
6. FileSystem API 标准的构成
• Data Persistence and accessing the API
• Shared data types
• The asynchronous filesystem interface
• The synchronous filesystem interface
• Errors and Exceptions
7. What can it do ?
• Storage and Quota
• Working with Files
• Working with Directories
• Copying, Renaming, and Moving Entries
• ……