(25) playing chicken child teach you Vue.js

view-cli

// 全局安装 vue-cli
npm install --global vue-cli

// 创建一个基于 webpack 模板的新项目
vue init webpack my-project

// 安装依赖
cd my-project
npm run dev

image.png

npm install vue
npm run start

image.png

image.png

image.png

image.png

image.png

image.png

image.png

It Xiangzai components such as the parent component transfer value of it?
In the form of attribute values pass

Parent component:
image.png

statement

image.png

delete

image.png

image.png

image.png

image.png

The global style and local style
image.png

scoped scope modifier, limit style

Vue instance life cycle


Please thumbs up! Because your encouragement is the greatest power of my writing!

No public official micro letter

Blowing force exchange group: 711,613,774

Blowing force exchange group

Guess you like

Origin blog.csdn.net/qq_36232611/article/details/94612242