写vue项目时候 零星的笔记

1,挂载也可以用 .$mount()

2,子组件中通过this.$root拿到实例的数据。截图中是子组件中

原文地址:https://www.cnblogs.com/aiyr/p/10264868.html