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

例:

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

 

相关文章:

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