关于window.open()打开新页面被拦截的问题解决

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/rosemarryTop/article/details/82251286

先打开新界面,再location刷新页面
var tw=window.open(‘_blank’);
tw.location=’./search.html?_k=’ + keycompany;

猜你喜欢

转载自blog.csdn.net/rosemarryTop/article/details/82251286
今日推荐