【发布时间】:2014-09-18 09:49:12
【问题描述】:
点击链接时需要下载,需要下载我提供的路径的PDF文档...我使用的是以下内容:
<a href="file://serveraddress/coverage.pdf" download> click</a>
也试过了
<a href="javascript:void(0);" onclick="document.execCommand("SaveAs",true,"file://server/coverage.pdf");" >31 MB</a>;
但它不起作用。
它没有重定向或下载或任何东西!
我在 chrome 和 firefox 中尝试了上述方法,但它不起作用。
【问题讨论】:
标签: c# javascript file pdf download