【发布时间】:2021-04-22 15:29:11
【问题描述】:
import file from '../../guidesPdf';
const handleFile = (fileName) => {
window.open(`${file}/${fileName}`);
}
{guidePdf.map(edu =>
<button className="btn btnService"
onClick={() =>handleFile(edu.fileName)}>Read More</button>}
我尝试做的是查看我存储在目录中的 pdf 文件。我想查看文件并确保没有人下载这些文件。
【问题讨论】:
标签: javascript reactjs pdf