import{ref,reactive,watch}from'vue'watch(data,(newVal,oldVal)=>{},{immediate:true,deep:true})一、监听普通类型constname=ref('握奇')constage=ref(21)//监听单个普通类型watch(name,(newVal,oldVal)=>{console.log(newVal)})//监听多个普通类型,返回数组watch([name,age],(newVal,oldVal)=>{console.log(newVal)})二、监听整个对象constperson=reactive({nam