Vue父組件向子組件傳值,且要監聽該值的變化

vue父組件向子組件傳值時,若是值會根據父組件的相關操做而變化,則須要在子組件裏用watch對其進行監聽 一、父組件vue <template> <div> <air-station :value="value"></air-station> </div> </template> import AirStation from '../components/air/AirStat
相關文章
相關標籤/搜索