Client-Side Data Storage: Keeping It Local (Paperback)

Raymond Camden

  • 出版商: O'Reilly
  • 出版日期: 2016-02-02
  • 定價: $1,020
  • 售價: 8.0$816
  • 語言: 英文
  • 頁數: 118
  • 裝訂: Paperback
  • ISBN: 1491935111
  • ISBN-13: 9781491935118
  • 立即出貨 (庫存 < 3)

商品描述

One of the most useful features of today’s modern browsers is the ability to store data right on the user’s computer or mobile device. Even as more people move toward the cloud, client-side storage can still save web developers a lot of time and money, if you do it right. This hands-on guide demonstrates several storage APIs in action. You’ll learn how and when to use them, their plusses and minuses, and steps for implementing one or more of them in your application.

Ideal for experienced web developers familiar with JavaScript, this book also introduces several open source libraries that make storage APIs easier to work with.

  • Learn how different browsers support each client-side storage API
  • Work with web (aka local) storage for simple things like lists or preferences
  • Use IndexedDB to store nearly anything you want on the user’s browser
  • Learn how support web apps that still use the discontinued Web SQL Database API
  • Explore Lockr, Dexie, and localForage, three libraries that simplify the use of storage APIs
  • Build a simple working application that makes use of several storage techniques

商品描述(中文翻譯)

現代瀏覽器最有用的功能之一是能夠將數據存儲在用戶的電腦或移動設備上。即使越來越多的人轉向雲端,如果使用得當,客戶端存儲仍然可以為網絡開發人員節省大量時間和金錢。這本實踐指南展示了幾個存儲API的實際應用。您將學習如何以及何時使用它們,它們的優點和缺點,以及在應用程序中實施其中一個或多個的步驟。

適合熟悉JavaScript的有經驗的網絡開發人員閱讀,本書還介紹了幾個開源庫,使存儲API更易於使用。

- 了解不同瀏覽器對每個客戶端存儲API的支持
- 使用Web(又稱本地)存儲來處理簡單的事項,如列表或首選項
- 使用IndexedDB在用戶的瀏覽器上存儲幾乎任何內容
- 學習如何支持仍使用已停用的Web SQL Database API的Web應用程序
- 探索Lockr、Dexie和localForage等三個簡化存儲API使用的庫
- 構建一個使用多種存儲技術的簡單工作應用程序