文件最后提交记录最后更新时间
!964 README整改 * update readme 3 年前
!844 适配901 IDE版本 * update * add input * bugfix * update to IDE 901 3 年前
!513 更新根目录README和sample下的README Merge pull request !513 from gaohui/master 4 年前
!964 README整改 * update readme 3 年前
!625 API工程适配 JsDotTest、JsVideo、JsAudioPlayer、LiteStorage到API8 * 修改DFX/JsDocTest文件README * 修改文件格式 * 适配工程LiteStorage、JsAudioPlayer、JsVideo、JsDotTest API7到API8 4 年前
!625 API工程适配 JsDotTest、JsVideo、JsAudioPlayer、LiteStorage到API8 * 修改DFX/JsDocTest文件README * 修改文件格式 * 适配工程LiteStorage、JsAudioPlayer、JsVideo、JsDotTest API7到API8 4 年前
!844 适配901 IDE版本 * update * add input * bugfix * update to IDE 901 3 年前
README-EN.md

Lightweight Storage

Introduction

Lightweight storage supports lightweight key-value (KV) operations and allows local apps to store a small amount of data. This sample shows how to add offerings to the shopping cart, remove offerings from the shopping cart, and saving the shopping cart. The shopping cart information is retained even when the app is closed. This reflects the lightweight storage feature.

Usage

  1. Select an offering and click Add to Cart. When the number of offerings in the shopping cart is greater than 5, a full icon is displayed in the upper right corner and no more offering can be added to the shopping cart.
  2. Touch the shopping cart icon to view the added offerings. You can delete offerings from the shopping cart or clear the shopping cart. The total price of offerings and the shopping cart icon change accordingly.
  3. Exit the app and then open the shopping cart again. The offering information before exit is displayed.

Constraints

This sample can only be run on standard-system devices.