vue.js父子組件經過Prop傳值

前言:本文主要記錄父子組件之間經過prop進行數據傳遞的方法一,即將Prop中的值賦值給本地定義的屬性,不涉及Prop的其餘特性html 父組件向子組件傳值 先寫一個簡單的子組件,內容以下vue <template> <div> <span class="child">{{msg}}</span> <br> </div> </template> <script> expo
相關文章
相關標籤/搜索