1. 程式人生 > >vue父組件給子傳參

vue父組件給子傳參

title .... pro 傳參 ops data child html prop

父:

  html

  .......

  <child :title="sontitle"></child>

  ......

  js

  data: sontitle

子:

  html

  {{title}}

  js

  props:[‘title‘]

就是這麽明了

vue父組件給子傳參