You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zhexuan Liu edited this page Jun 21, 2018
·
1 revision
数据存储
mesh.storage
Mesh 的 Swift 环境为 JS 提供了简单的数据存储 API, JS 可以使用这些 API 来进行简单的 key-value 模式的数据存储。
storage 对象提供的方法有三个:
// Set itemmesh.storage.setItem(value,key)// Get itemletitem=mesh.storage.getItem(key)console.log(item)// Remove item for one keymesh.storage.removeItem(key)