mouseenter without JQuery

后端 未结 4 1077
庸人自扰
庸人自扰 2020-12-08 22:43

What would be the best way to implement a mouseenter/mouseleave like event in Javascript without jQuery? What\'s the best strategy for cross browser use? I\'m thinking some

4条回答
  •  失恋的感觉
    2020-12-08 23:41

    John Resig submitted his entry to a contest, in which his was judged the best (Note: Dean Edwards was one of the jury). So, I would say, check this one out too.

    Also its doesn't hurt to go thru jQuery, DOJO source once in a while, to actually see the best practices they r using to make it work cross-browser.

提交回复
热议问题