Using the HTML5 Filesystem API (Paperback)
暫譯: 使用 HTML5 檔案系統 API (平裝本)

Eric Bidelman

  • 出版商: O'Reilly
  • 出版日期: 2011-08-30
  • 定價: $700
  • 售價: 1.4$99
  • 語言: 英文
  • 頁數: 76
  • 裝訂: Paperback
  • ISBN: 1449309453
  • ISBN-13: 9781449309459
  • 相關分類: HTML
  • 立即出貨 (庫存 < 3)

買這商品的人也買了...

商品描述

Several client-side storage options are available to web applications, but one area that's been lacking until now is file I/O—the ability to organize binary data into a true hierarchy of folders. That has changed with the advent of HTML5. With this book, you'll learn how to provide your applications with a file system that enables them to create, read, and write files and folders in a sandboxed section of the user's local filesystem.

Author Eric Bidelman, a Senior Developer Programs Engineer on the Google Chrome team, provides several techniques and complete code examples for working with the HTML5 Filesystem API.

  • Learn common operations for working with files and directories
  • Become familiar with HTML5's storage use cases and security considerations
  • Understand the storage options available, including temporary, persistent, and unlimited
  • Write text or append data to an existing user file
  • Import files into your application by accessing a user's hard drive
  • Get techniques for using a file with filesystem, blob, or data URLs
  • Use the synchronous version of the HTML5 Filesystem API within a Web Worker context

商品描述(中文翻譯)

幾種客戶端儲存選項可供網頁應用程式使用,但直到現在,文件 I/O(即將二進位資料組織成真正的資料夾層級的能力)一直是個缺乏的領域。隨著 HTML5 的出現,這一點已經改變。透過本書,您將學習如何為您的應用程式提供一個檔案系統,使其能夠在用戶本地檔案系統的沙盒區域中創建、讀取和寫入檔案和資料夾。

作者 Eric Bidelman 是 Google Chrome 團隊的資深開發者計畫工程師,他提供了多種技術和完整的程式碼範例,以便與 HTML5 Filesystem API 進行互動。

- 學習處理檔案和目錄的常見操作
- 熟悉 HTML5 的儲存使用案例和安全考量
- 了解可用的儲存選項,包括臨時、持久和無限制
- 寫入文本或將資料附加到現有的用戶檔案
- 通過訪問用戶的硬碟將檔案導入您的應用程式
- 獲取使用檔案與檔案系統、blob 或資料 URL 的技術
- 在 Web Worker 環境中使用 HTML5 Filesystem API 的同步版本