第一,把子組件引入到父組件中,並使用,使用時給子組件傳遞數據
import stationcarpool from './stationcarpool'
<stationcarpool messages="wu"></stationcarpool>第二,在子組件中使用props
第三,使用屬性
第一,把子組件引入到父組件中,並使用,使用時給子組件傳遞數據
import stationcarpool from './stationcarpool'
<stationcarpool messages="wu"></stationcarpool>第二,在子組件中使用props
第三,使用屬性