Category:Vue.js
Article From:https://www.cnblogs.com/KellyChen/p/9061919.html

 

1. vue-cliFile execution order

 index.html -> main.js -> App.vue(The root component is used to fuse each sub Vue, and the sub Vue comes with style& script).

 

 

 

 

2. The call relationship between subvue and app.vue

— The sub Vue displays the interface through the export default

— app.vue Using import to use

 

3. Parent and child data transfer

Father v-bind-> son props

Son this.$emit-> father v-on $event

 

 

4. router-link routerv-view in app.vue & router register in main.js

 

Link of this Article: vue.js note

Leave a Reply

Your email address will not be published. Required fields are marked *