vue2.0的學習筆記,子組件修改父組件的值踩坑

Vue1.0升級至2.0以後,直接在子組件修改父組件的值是會報錯的 目的是爲了阻止子組件影響父組件的數據html 報錯警告:Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or comput
相關文章
相關標籤/搜索