http://bbs.csdn.net/topics/350230944

 

如果是append进来的,那么父页面的方法直接

头部 头部
菜单栏 子页面(通过append方法写入的)

写在子页面即可

同时别忘记了冒泡时间,如果直接加上click是不生效的。或者生效延时

$(document).on('click','.but',function(){
alert($(this).attr("id"));
window.openr.getDiv("ticketDetail");
});

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-20
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
猜你喜欢
  • 2021-05-04
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2021-08-19
  • 2021-10-04
相关资源
相似解决方案