摘要: 1.首先注册点击事件,需要注意的是,在openInfo这个函数需要写在子组件里 2.给子组件添加ref 3.在子组件里写openInfo() 阅读全文
posted @ 2020-09-13 20:20 前端CodingPeasant 阅读(439) 评论(0) 推荐(0)