【Vue】6.解決父組件向子組件傳值修改之後再傳回父組件的問題

在vue2.0中父組件向子組件傳入一個值,這個值在子組件裏面被改變之後再傳回父組件,這個時候vue組件會報錯:vue [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data
相關文章
相關標籤/搜索