📜  苗条的商店美元符号 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:23.029000             🧑  作者: Mango

代码示例1
import { writable } from 'svelte/store';

const count = writable(0);
console.log($count); // logs 0

count.set(1);
console.log($count); // logs 1

$count = 2;
console.log($count); // logs 2