js实现window.open不被拦截的解决方法

$obj.click(function(){
 var newTab=window.open('about:blank');
 $.ajax({
  success:function(data){
   if(data){
    //window.open('http://www.bitsCN.com');
    newTab.location.href="http://www.bitsCN.com";
   }
  }
 })
})

 终极大招。如上

猜你喜欢

转载自lvjun106.iteye.com/blog/2300907
今日推荐