版权声明:多总结,帮助自己的同时也在帮助别人!留下意见和看法,让技术动起来! https://blog.csdn.net/qiphon3650/article/details/84956308
window.open被浏览器拦截
解决办法
一般被拦截,都是ajax请求后使用window.open造成的
我们可以把window.open 放到ajax的外面,
let box = window.open('about:blank',"_self")
$.ajax().then(res=>{
box.location = res // 我这个实例是用下载的
})
更多window.open 参阅菜鸟教程