跳到主要内容
学院
初级 代码街区

Vue

易上手的响应式界面。

Vue is a JavaScript framework for building user interfaces: you write templates that look like HTML, and Vue keeps the page in sync with your data. This track teaches Vue 3.5 the modern way, with single-file components, <script setup> and the Composition API. You will build a like button, a points badge and a small feed you can filter and like, take a first look at Vue Router and Pinia, and then go further with slots, TypeScript and Nuxt.

You already know JavaScript, so every lesson goes straight to what Vue adds, with short examples from a small social app.

课时
14
时长
2 小时
级别
初级

本课程的内容目前为英文。

  • 铜牌 可挑战
  • 银牌 可挑战
  • 金牌 未解锁

准备好证明自己了吗?

三场考试正等着你:铜牌、银牌和金牌。

前往考试

学完后你将能够

  • Build single-file components with <script setup>, templates and scoped styles
  • Manage state with ref, reactive, computed and watch
  • Render conditions and lists, handle events and bind forms with v-model
  • Connect components with props, events and slots, and reuse logic with composables
  • Know where Vue Router and Pinia fit, and what to learn next
  • Type your components with TypeScript and start a full-stack app with Nuxt

学习旅程

  1. 1
    第 1 单元

    First components

    What Vue is, your first single-file component, and reactive state with ref, computed and watch.

    0 / 5
  2. 2
    第 2 单元

    Building an app

    Template directives, props and events, composables and lifecycle, and a first look at Vue Router and Pinia.

    0 / 5
  3. 3
    第 3 单元

    Going further

    Slots and provide/inject, Vue with TypeScript, and Nuxt: the road from this course to full-stack Vue apps.

    0 / 4

快速导航