computed 写法一: 仅可读 let full = computed(()=>{ return 111111111111 // full是一个computedRefImpl定义的响应式对象 }) 写法二: 可读可写 let full = computed({ get:()=>{ return "123" }, set:(val)=>{ num.value = val.slice(0,1) } }) full.value = "123456"