说明:涉及到事件委托原理,这里不深究了。

直接使用live或者delegate去实现。网上说on也可以,没测试过。

注意:live在新版的JQuery已经取消。on在比较新的版本才支持。

 

参考:

https://www.cnblogs.com/evemen/p/6241351.html

https://segmentfault.com/q/1010000005617856

http://www.w3school.com.cn/jquery/event_live.asp

http://blog.csdn.net/nchu2020/article/details/51298446

http://blog.csdn.net/u010957293/article/details/52242521

https://stackoverflow.com/questions/15670352/typeerror-on-is-not-a-function

相关文章:

  • 2021-08-19
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2021-12-08
  • 2021-07-31
  • 2021-12-09
  • 2021-06-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
相关资源
相似解决方案