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 ++;
}

posted @ 2010-08-22 11:27  y0umer  阅读(356)  评论(0编辑  收藏  举报