开发者

Set Time out by passing a parameter

i'm currently have a problem by using the SetTimeOut function.

The thing is that i need to use it by passing a parameter, but it didn't work... Here is the code :

function RSSChecker(dMObject)
{
    if (dMObject) 
    {
        alert('Refresh');
        window.setTimeout(RSSChec开发者_运维问答ker(dMObject), 10000);
    }
}

Any ideas?


Another approach would be to wrap the inner call in an anonymous function that invokes your function. So that you have:-

window.setTimeout(function() { RSSChecker(dmObject); }, 10000);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜