为了判断元素是否显示,jquery中用is()来实现,

$(function(){

  $(obj).bind('click',function(){

    if(obj.is(:visible)){

  //编写的代码

}else{

  //编写的代码

}

})

 

})

 

相关文章:

  • 2021-12-09
  • 2021-11-19
  • 2022-01-04
  • 2021-10-25
  • 2021-05-16
  • 2022-12-23
  • 2022-12-23
  • 2022-02-10
猜你喜欢
  • 2022-02-13
  • 2022-12-23
  • 2022-01-26
  • 2022-12-23
  • 2021-12-22
  • 2021-12-22
  • 2022-12-23
相关资源
相似解决方案