摘要: 从父组件传值到子组件 因为父元素的方法可以直接修改父元素的数据,所以将父元素的方法传递给子元素,然后子元素进行调用,从而修改父元素的数据$root,$parent,$children 1.子元素通过$parent方法修改父元素的内容: <!DOCTYPE html> <html> <head> <m 阅读全文
posted @ 2020-10-10 11:58 peifengyang 阅读(398) 评论(0) 推荐(0) 编辑