what is setTimeOut() function in javascript?

前端 未结 4 1668
粉色の甜心
粉色の甜心 2020-12-19 21:55

Can i ask what the function of setTimeOut method in javascript?As below:

function startTime()
{
var today=new Date();
var h=today.getHours();
var m=today.get         


        
4条回答
  •  一整个雨季
    2020-12-19 22:40

    Not sure you what you want.

    setTimeout is a method of the global window object. It executes the given function (or evaluates the given string) after the time given as second parameter passed.

    Read more about setTimeout.

提交回复
热议问题