Vue父子組件傳值的方法

1.父向子傳值propsvue 父組件:<child :inputName="name">數組 子組件:dom (1)props: {函數    inputName: String,ui    required: truethis   }spa (2)props: ["inputName"]component 2.子組件向父組件傳值$emit對象 子組件:blog  <span>{{childVa
相關文章
相關標籤/搜索