In the design phase, you did not anticipate that mousemove or mouseout events would occur in Inactive state.
在设计阶段,没有预料到在Inactive状态下会出现mousemove或mouseout事件。
The final two methods of the Event module, mouseover(fn) and mouseout(fn), are quite common in most Web sites today.
Event 模块的最后两个方法 mouseover(fn) 和 mouseout(fn) 目前在很多 Web 站点上都很常见。
You'll notice that this time you simply define a single function that is called by both the mouseover and mouseout events.
您会注意到,这次只定义了一个函数供mouseover和mouseout事件调用。
应用推荐