//监听iframe子页面,关闭menu
$("iframe").on("load", function(event){//判断 iframe是否加载完成
$(this.contentDocument).click(function(){//添加点击事件
$('.jgui-menu').css("visibility","hidden");
});
});

这样写主要是为了处理动态创建Iframe时,未加载成功绑定失败问题。

相关文章:

  • 2021-12-14
  • 2021-06-16
  • 2022-12-23
  • 2021-08-16
  • 2021-05-17
  • 2021-08-15
猜你喜欢
  • 2022-12-23
  • 2022-02-27
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
相关资源
相似解决方案