📜  下载pdf javascript代码示例

📅  最后修改于: 2022-03-11 15:03:09.788000             🧑  作者: Mango

代码示例2
var link = document.createElement('a');
link.href = url;
link.download = 'file.pdf';
link.dispatchEvent(new MouseEvent('click'));