你的问题原因是事件冒泡导致找不到或者找到多个事件导致的,
你这样去写!
$(“#div1").on("click",".k1",function(){

        alert(11);
    })

不要用:
$(document).on("click","#div1 > .k1",function(){


        alert(11);
    })

 

相关文章:

  • 2022-12-23
  • 2021-06-21
  • 2021-06-17
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
猜你喜欢
  • 2021-12-25
  • 2021-11-30
  • 2021-12-02
  • 2022-12-23
  • 2022-01-01
  • 2021-09-15
  • 2022-12-23
相关资源
相似解决方案