父組件向子組件傳值

 父組件: 注意一點,這個 :numy = 「」 必定要是雙引號,單引號不起做用node <cnode-head  @getChild="hidePanel" :numy="tr"></cnode-head>ide 子組件:get {{numy}} //能夠直接使用了ps export default{   props:['numy'] }
相關文章
相關標籤/搜索