vue學習(四):子組件向父組件傳參

子組件向父組件傳參主要依靠 v-on 和  $.emitcss 這個是vue官網上給的方法調用,咱們看看頁面上怎麼使用。html 子組件 main_Header.vuevue <template> <div> <div>{{count}}</div> <div v-for="(item, index) in list">{{item}}</div> <button v-on:cl
相關文章
相關標籤/搜索