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
相关文章
相关标签/搜索