使用getter 函数,并为从getter 返回的值返回一个不变的响应式ref 对象。 const count = ref(1) const plusOne = computed(() => count.value + 1) ...
確定! 回上一頁