首页 / 词典 / good

setinterval

  • n.设置间隔;一个实现定时调用的函数
setintervalsetinterval
  1. SetInterval () is the key function .

    setInterval()是关键函数。

  2. These IDs are passed back from the setTimeout / setInterval function .

    这些ID是从setTimeout/setInterval函数传递回来的。

  3. The steps-based animation that people try to use with setInterval code just ends up looking jerky .

    用setInterval代码实现基于步骤的动画看起来有些抖动。

  4. That difference is in milliseconds and is used to figure out what percentage of the animation should be performed at the time the setInterval timer went off .

    这个时间差是用毫秒计的,用于确定当setInterval定时器离开时动画应该执行百分之多少。

  5. The init () function calls getInfo () to initialize the UI and passes the same function to setInterval () so that it is called every second to refresh the Web page 's information .

    init()函数调用getInfo()来初始化UI,并将同一个函数传递到setInterval(),以便每秒钟都调用该函数刷新Web页面的信息。