随笔分类 -  ts

摘要:在使用pinia时候我发现实现其持久化的存储有两个插件 pinia-persistedstate-plugin和pinia-plugin-persist 其中区别和使用如下 1.pinia-persistedstate-plugin (存储在localStorage) import { create 阅读全文
posted @ 2022-10-30 15:32 小不点灬 阅读(4076) 评论(0) 推荐(0) 编辑
摘要:相同点 1.都可以描述一个对象或者函数 interface interface People { name: string age: number } interface setPeople { (name:string,age:number):void } type type People = { 阅读全文
posted @ 2021-06-17 19:42 小不点灬 阅读(501) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示