This function creates a manual-reset or auto-reset event object and also sets the initial state of the object.
这个函数创建一个手工重置或自动重置的事件对象,同时还要设置改对象的初始状态。
For example, in the initial state of Inactive, the only expected event is mouseover, so you can define a function to handle that situation, as shown in Listing 9.
例如,在Inactive的初始状态中,可能出现的惟一事件是mouseover,所以可以定义一个处理此情况的函数,见清单9。
The system under test does not make a direct global function call to Math.random in order to determine the initial image state of the reels.
被测系统并未直接调用全局函数Math . random,来决定每个轴初始的图片状态。
OK, so, the thing about a state function is that the function has a value for initial conditions and at final conditions.
态函数的特点是,在初始状态有一个值,在末状态也有一个值。
应用推荐