let setColor = (()=>{ color.value = color.value=='blue'?'red':'blue' }) // 计算属性-简写 const num = computed(()=>{ return title.value+data.title }) // watch属性 监听ref 监听多个[1,2] watch(title, (newValue, oldValue) => { console.log('v1===', newValue, oldValue) ...