使用ref函数定义一个变量,ref扩号里是变量的初始值. import { ref } from 'vue'. let conter=ref(0) let arr=ref(['我是字符串']). template里的用法.
確定! 回上一頁