import { ref } from "vue";
// 声明一个 ref 变量,类型为字符串
const strRef = ref<string>("初始值");
// 声明一个 ref 变量,类型为数字
const numRef = ref<number>(0);
// 声明一个 ref 变量,类型为对象
interface MyObject {
name: string;
age: number;
}
const objRef = ref<MyObject>({ name: "默认名字", age: 18 });
02-15
3842
3842
07-08
2589
2589
04-23
1万+
1万+

被折叠的 条评论
为什么被折叠?



