Vue 父組件ajax異步更新數據,子組件props獲取不到

轉載地址:http://www.javashuo.com/article/p-smxmjwxb-sz.html 當父組件  axjos  獲取數據,子組件使用  props  接收數據時,執行  mounted  的時候  axjos  還沒有返回數據,而且  mounted 只執行一次,這時   props  中接收的數據爲空 解決方案:在對應組件中判斷數據的長度
相關文章
相關標籤/搜索