周下载量20万的npm包---store

https://www.npmjs.com/package/store

<script setup>
import { onMounted } from 'vue'
import store from 'store'



onMounted(() => {
  store.set('user', { name: 'xutongbao' })
  let user = store.get('user')
  console.log(user) //对象
  console.log(localStorage.getItem('user')) //字符串
})
</script>

<template>
  <div>
  </div>
</template>

人工智能学习网站

https://chat.xutongbao.top

上一篇:uniapp实现图片懒加载 封装组件


下一篇:算法训练营day06 哈希表(统计数,去重,降低时间复杂度)