开发者

mousemove but only trigger once if in an element

开发者 https://www.devze.com 2023-03-30 06:33 出处:网络
How can I improve the following so that I only开发者_开发百科 trigger an event once per element?

How can I improve the following so that I only开发者_开发百科 trigger an event once per element?

http://jsfiddle.net/victorfoster/Q3JmZ/1/

I would like a square to only be toggled once when dragging over it, not multiple times.


You're looking for mouseenter.

0

精彩评论

暂无评论...
验证码 换一张
取 消