reactjs - React reload after peak so photo that peak to OCR Process in无法进动
问题描述
单击生成反应后重新加载页面,因此已附加到网络的照片未附加。所以它不能处理OCR。我应该怎么做才能使它不重新加载页面并开始运行 OCR 进程。
一些代码
<label className="fileUploaderContainer">
Click here to upload documents
<input
type="file"
id="fileUploader"
onChange={this.handleChange}
multiple
/>
</label>
<div>
{" "}
{this.state.uploads.map((value, index) => {
return (
<img key={index} src={value} width="100px " alt="state.uploads.map" />
);
})}{" "}
</div>
<button onClick={this.generateText} className="button">
{" "}
Generate{" "}
</button>
解决方案
推荐阅读
- python - numpy数组中多个元素的索引
- objective-c - 是否可以在 Objective-C 中使用 YouTubePlayer-Swift?
- java - 如何在运行 .jar 之前运行另一个程序
- django - urls.py 中的 Django2 AttributeError
- wordpress - Wordpress 动态元框输入
- python - Python 和 Matplotlib:如何绘制一组只知道极值的线段?
- android - 发布 MainThread Runnables 内存泄漏安全 Android
- c++ - 弃用 C++11 中的类和函数
- javascript - javascript数组循环到表
- hadoop - Windows 上的 Hadoop 安装:无法为您的平台加载 native-hadoop 库...在适用的情况下使用内置 java 类