asp 毫秒数 timer 当前0点与当前时间的毫秒差

asp 毫秒数 timer 当前0点与当前时间的毫秒差

timer()两位小数

sql中可能为三位

js 延时 unction DoSomeThing()
{
        //Step 1
        ......
        //Step 2
        ......
        //Step ...
        ......
        //Step N
        ......
}

改成下面的

function Step1() { ... }
function Step2() { ... }
function Step...() { ... }
function StepN() { ... }

var stepArray = new Array("Step1()","Step2()",Step...()","StepN()");
function DoSomeThing(iIndex)
{
        if( iIndex<= stepArray.length )
                setTimeout(stepArray(iIndex),1);
        else
                alert("finished");
        iIndex ++;
}

原文地址:https://www.cnblogs.com/y0umer/p/3839399.html