vue父組件調用子組件,爲子組件傳值,prop用法

1.父組件調用子組件 子組件children.vue代碼以下:javascript <template> <div>我是子組件</div> </template> 父組件parent.vue代碼以下:html <template> <div> <myChild></myChild> </div> </template> <script> import myChild fro
相關文章
相關標籤/搜索