jquery on vs click methods

后端 未结 1 475
名媛妹妹
名媛妹妹 2020-11-28 12:58

I know that the on method, is supposed to replace live, delegate etc. But is there any point in using it on places where you\'re currently using th

相关标签:
1条回答
  • 2020-11-28 13:52

    It's not specifically worth replacing click(), as in the jQuery source it converts all the 'shortcut' event handlers (like click(), keyup() etc.) to on("event", fn) anyway.

    0 讨论(0)
提交回复
热议问题