xujingyang

 

废话不多说,直接上代码!

1 $(document).bind("click",function(e){
2         var target = $(e.target);
3         if(target.closest("#parentId").length == 0){//点击id为parentId之外的地方触发
4             layer.close(tip_index);
5             type=0;
6         }
7 })

 

分类:

技术点:

相关文章:

  • 2022-01-01
  • 2021-10-15
  • 2021-11-30
  • 2021-11-30
  • 2022-02-07
  • 2021-12-19
  • 2021-07-05
  • 2021-11-17
猜你喜欢
  • 2021-12-05
  • 2019-11-25
  • 2021-11-20
  • 2022-02-02
  • 2021-12-19
相关资源
相似解决方案