父組件主動獲取子組件的數據和方法
1.調用子組件的時候 定義一個ref
<headerchild ref="headerChild"></headerchild>
2.在父組件裏面通過
this.$refs.headerChild.屬性 t
his.$refs.headerChild.方法
子組件主動獲取父組件的數據和方法
this.$parent.屬性
this.$parent.方法
1.調用子組件的時候 定義一個ref
<headerchild ref="headerChild"></headerchild>
2.在父組件裏面通過
this.$refs.headerChild.屬性 t
his.$refs.headerChild.方法
this.$parent.屬性
this.$parent.方法
package-lock.json的作用 "node_modules/@aashutoshrathi/word-wrap": { "version": "1.2.6", "resolved": "h
Vue-cli 3 / Vue-cli 4 目錄結構 ├── README.md # 說明 |-- dist # 打包後文件夾 ├── babel.config.js
掃描圖書前言中的如下圖所示的二維碼,即可進入到下載頁面。 如下圖所示即爲課件的下載頁面,免費提供下載