store.js

作者: xueyueshuai | 来源:发表于2023-07-24 16:55 被阅读0次
npm i store
// Store current user
store.set('user', { name:'Marcus' })
 
// Get current user
store.get('user')
 
// Remove current user
store.remove('user')
 
// Clear all keys
store.clearAll()
 
// Loop over all stored values
store.each(function(value, key) {
    console.log(key, '==', value)
})

相关文章

网友评论

      本文标题:store.js

      本文链接:https://www.haomeiwen.com/subject/bpniydtx.html