In JQuery when should you use .bind() over .click() - or any other given event?

后端 未结 5 1440
离开以前
离开以前 2021-02-08 03:22

I understand the difference between Live and Bind but when should I use use .bind() over a \'standard\' event method as shown below.

Are there any key differ

5条回答
  •  抹茶落季
    2021-02-08 03:52

    They're effectively the same. However, using bind() allows you to make use of namespaced events. This is especially useful when writing plugins.

提交回复
热议问题