When the cursor then moves, any browser will generate a mousemove or mouseout event in Inactive state.
然后,当鼠标移动时,任何浏览器都会在Inactive 状态下生成mousemove或mouseout事件。
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事件调用。
Your widget will need to respond to three different events in the Pause state: the mousemove, mouseout, and timeout events.
部件在Pause状态下需要响应三个事件:mousemove、mouseout和timeout事件。
Again, intuition led you to expect that mouseover events would precede mouseout events, so the mouseout events would not occur in Inactive state.
同样,从直觉上看,mouseout事件之前应该发生mouseover事件,所以mouseout事件不应该出现在Inactive状态中。
No actions or transition are needed in this situation; you just want the finite state machine to ignore mouseout events in Inactive state, as shown in Listing 5.
在这种情况下,不需要操作或转换;只需让有限状态机忽略inactive状态中的mouseout事件,如清单5所示。
When a mouseout event occurs, your code will call a function that cancels the timer started earlier in this section, and then transitions back to Inactive state.
当发生mouseout事件时,代码调用一个函数,它会取消本节前面启动的计时器,然后转换回Inactive状态。
When a mouseout event occurs, your code will call a function that cancels the timer started earlier in this section, and then transitions back to Inactive state.
当发生mouseout事件时,代码调用一个函数,它会取消本节前面启动的计时器,然后转换回Inactive状态。
应用推荐