vue父組件向子組件進行傳值 父組件用$children主動獲取子組件的屬性方法

父組件:web <template> <div> <h2>我是父組件:</h2> <div> <input v-model="parementMsg"> </div> <div> <!-- 3.向子組件 傳參 --> <Child2 :fromParentMsg="parementMsg"></Child2> <b
相關文章
相關標籤/搜索