vue3 的监听跟vue2有点不一样.引入watch后直接在setup里面使用, 调用方式是以回调函数的方式呈现.1.先引入watchimport { ref, defineComponent, watch } from "vue";2.
確定! 回上一頁