判断元素是否可见的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://lszwz.com/article/gooecj.html

其他资讯

售后响应及时

7×24小时客服热线

数据备份

更安全、更高效、更稳定

价格公道精准

项目经理精准报价不弄虚作假

合作无风险

重合同讲信誉,无效全额退款