vue中子組件向父組件傳值---vue學習

vue中子組件能夠向父組件傳值,如下介紹具體方法javascript <div id="app"> <com @parentshow="show"></com> </div> <template id="temp"> <div> <h1>這是子組件</h1> <input type="button" @click="func" value="點擊"> </div>
相關文章
相關標籤/搜索