在iframe中点击弹出层外部分弹出层消失,但是点击iframe外部分就操作不了弹出层了,被这个问题困扰了不少时间,今天得以解决,代码如下:

说明:$(top.document,document).click()不可以实现,要按下面的方式实现。
$(top.document).click(function (e) {
     if(!$(e.target).closest("#sysSetListWrapper").length){
          $(".sysSetListOuter").hide();
     }
 });
 $(document).click(function (e) {
     if(!$(e.target).closest("#sysSetListWrapper").length){
          $(".sysSetListOuter").hide();
      }
  });

相关文章:

  • 2022-01-31
  • 2022-12-23
  • 2022-01-09
  • 2021-09-03
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
相关资源
相似解决方案