您好我们在本地存储空间有很多发票 他们的发票号码将从MySQL数据库中获取,并生成此发票的链接 问题是,通过点击将打开一个新窗口,但有错误,PDF将无法加载或无法用Acrobat Reader打开。
<td><a href="file:/<?= $pathToInvoice ?>" target="_blank"><?= $invoiceNumber ?></a></td>
然后在html部分:
<td><a href="<?= $pathToInvoice ?>" target="_blank"><?= $invoiceNumber ?></a></td>
或
Firefox does not know how to open this address, because one of the following (x) is not a registered protocol or is not allowed in this context.
带文件:/是不可点击的链接
在第二个版本中,将打开一个带有路径的新窗口但收到错误消息
pip3 install Jupyter
我该如何解决?
答案 0 :(得分:0)
也许从这三个方差中尝试一些方法
1)<a href="file:///K:/AmberCRO-SOP/2011-07-05/SOP-SOP-3.0.pdf">test.pdf</a>
2)<a href="AmberCRO-SOP/2011-07-05/SOP-SOP-3.0.pdf">test.pdf</a>
3)<a href="2011-07-05/SOP-SOP-3.0.pdf">test.pdf</a>