新创建的元素用传统的办法无法绑定,需要用live方法。

例:

  $('.rule').live('mouseover', function () {
          $(this).addClass("cancelable");

 

相关文章:

  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2021-09-15
  • 2021-05-21
  • 2021-05-22
猜你喜欢
  • 2022-12-23
  • 2021-10-23
  • 2021-08-28
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
相关资源
相似解决方案