Skip to content

set

ref.value = x 的简写

¥Shorthand for ref.value = x

用法

¥Usage

ts
import { 
set
} from '@vueuse/core'
const
a
=
ref
(0)
set
(
a
, 1)
console
.
log
(
a
.
value
) // 1