猿问
回到首页
个人中心
反馈问题
注册登录
下载APP
首页
课程
实战
体系课
手记
专栏
慕课教程
antd组件的methods怎么调用
ant design组件里类似于这种方法是怎么调用的,这不像组件的参数。不知道怎么使用,求教。
千万里不及你
浏览 2022
回答 2
2回答
BIG阳
如果我按钮事件是在另一个组件这个怎么传输,给组件绑定ref打印出来的是这样的
0
0
0
大话西游666
constructor(props) { super(props); this.carouselRef = null; this.setCarouselRef = el => { this.carouselRef = el; }; } componentDidMount() { // 调用 if (this.carouselRef) this.carouselRef.next(); } // render部分 <Carousel ref={this.setCarouselRef} ></Carousel>
0
0
0
打开App,查看更多内容
随时随地看视频
慕课网APP
继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续