您应该在类MyComponent下使用构造函数扩展React.Component
constructor(props){ super(props); this.onSubmit = this.onSubmit.bind(this); }
然后您将获得标题的结果
欢迎分享,转载请注明来源:内存溢出
您应该在类MyComponent下使用构造函数扩展React.Component
constructor(props){ super(props); this.onSubmit = this.onSubmit.bind(this); }
然后您将获得标题的结果
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)