方式一:
window.location.href = "url"
方式二(推荐):
try{
var elemIF = document.createElement("iframe");
elemIF.src = url;
elemIF.style.display = "none";
document.body.appendChild(elemIF);
}catch(e){
console.log(e);
}
方式一:
window.location.href = "url"
方式二(推荐):
try{
var elemIF = document.createElement("iframe");
elemIF.src = url;
elemIF.style.display = "none";
document.body.appendChild(elemIF);
}catch(e){
console.log(e);
}
本文标题:js下载附件
本文链接:https://www.haomeiwen.com/subject/vxmugqtx.html
网友评论