How to translate jQuery .live() to .on() with events bound to this?

前端 未结 4 885
一向
一向 2021-02-13 04:11

I\'m in the process of converting code from the deprecated .live() API to .on() (see the jQuery 1.7 release notes)

I have live events attached

4条回答
  •  情深已故
    2021-02-13 04:32

    $(selector).on(events, data, handler)
    

    Still works fine. You could still use that. Check out the .on docs

提交回复
热议问题