摘要: 一、ViewChild 方法(不便于组件解耦及组件重用) 1.创建父组件parent 2.创建子组件child 3.在child中创建 print 方法 4.在parent.component.html中引入child组件 5.在parent中引入ViewChild并执行child方法 二、Even 阅读全文
posted @ 2019-07-19 11:14 苏州城外的微笑 阅读(503) 评论(0) 推荐(0)