Vue 3 组合式API

Setup函数

setup函数是组合式API的入口点。

响应式数据

使用refreactive创建响应式数据。

1
const count = ref(0);
Licensed under the GNU General Public License v3.0