第一,把子组件引入到父组件中,并使用,使用时给子组件传递数据
import stationcarpool from './stationcarpool'
<stationcarpool messages="wu"></stationcarpool>第二,在子组件中使用props
第三,使用属性
第一,把子组件引入到父组件中,并使用,使用时给子组件传递数据
import stationcarpool from './stationcarpool'
<stationcarpool messages="wu"></stationcarpool>第二,在子组件中使用props
第三,使用属性