Appearance
function ref<T>(value: T, isReadonly: boolean): Ref<T>
代理基本类型值,返回响应式数据
const obj = ref(3); obj.value = 4; console.log(obj.value); //4
T
value
undefined
基本类型值
isReadonly
boolean
false
是否只读
Ref<T>
Ref