开发者

mousemove but only trigger once if in an 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜