文件名称:svelte-localstorage::warning:尚未就绪:warning:自动与localStorage同步的Svelte可写存储
文件大小:9KB
文件格式:ZIP
更新时间:2024-05-31 22:18:12
localstorage svelte JavaScript
:file_cabinet: 精简的本地存储 该Svelte库提供可写存储,这些存储可自动与localStorage同步。 :laptop: 安装 npm install --save-dev @babichjacob/svelte-localstorage :toolbox: SvelteKit 使用@babichjacob/svelte-localstorage/svelte-kit的可写商店创建者: < script > import { localStorageStore } from " @babichjacob/svelte-localstorage/svelte-kit " ; const textInput = localStorageStore ( " text-input " , " Initial value " ); </ script > < input bind:value ={ $textInput }
【文件预览】:
svelte-localstorage-main
----.github()
--------workflows()
----jsconfig.json(288B)
----LICENSE(1KB)
----README.md(40B)
----pnpm-lock.yaml(642B)
----pnpm-workspace.yaml(27B)
----.gitignore(22B)
----CODEOWNERS(60B)
----projects()
--------svelte-localstorage()
----package.json(756B)