vue中使用props傳值

1.靜態傳值(在父組件中賦值好props中屬性的值傳遞給子組件)vue 父組件spa <template> <div> <input v-model="message"> <child message="hello"></child> </div> </template> <script> import child from './components/child.vu
相關文章
相關標籤/搜索