400 028 6601

建站动态

根据您的个性需求进行定制 先人一步 抢占小程序红利时代

判断元素是否可见的jQuery新窗口打开图片

function judgeShowOrHide(){  
    alert($("#id").is(':visible')); //判断是否显示  显示:true 隐藏:false  
    if($("#id").is(':hidden')){  
        alert("隐藏了");  
        //处理业务  
    }else{  
        alert("显示");             
               //处理业务  
        }  
}
    function targetBigImage() {       
     jQuery('.x_imgnew a').each(function(index){        
      if (jQuery(this).is(':visible')) {          
            window.open(jQuery(this).find('img').attr('src'));   
      }       
        });  
       }

本文标题:判断元素是否可见的jQuery新窗口打开图片
标题来源:http://mbwzsj.com/article/gooecj.html

其他资讯

让你的专属顾问为你服务