📜  vue 3 composition api watch - Javascript代码示例

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

代码示例1
// directly watching a ref

const selected = ref(props.selected)

watch(selected, (selection, prevSelection) => { 
   /* ... */ 
})