vue 子組件觸發父組件方法的兩種方式

父組件:html <template> <div> <div @click="openChild">彈彈彈,彈出子組件</div> <childs ref="alert" @watchChild="parentReceive"></childs> <!--監聽子組件綁定的方法--> </div> </template> <script> import childs from '../compon
相關文章
相關標籤/搜索