Vue 基础
Vue 是渐进式前端框架,适合构建交互页面、后台系统和中大型前端应用。
学习重点
- 模板语法;
- 响应式数据;
- 指令;
- 组件;
- props 和 emits;
- computed;
- watch;
- 生命周期;
- Composition API。
最小示例
<script setup>
import { ref } from "vue";
const count = ref(0);
</script>
<template>
<button @click="count++">{{ count }}</button>
</template>
学习建议
先掌握组件和响应式,再学习路由、状态管理和工程化。