使用this.$emit()方法解决vue中父子组件使用prop传值时,单向数据绑定,父类没法获取子类修改父类后的数据

父组件:css <template> <div> <blog-editor :content.sync="content"></blog-editor> </div> </template> <script> import blogEditor from './blog-editor' import '../assets/css/blog-editor.css' exp
相关文章
相关标签/搜索