ServiceNow setTimeout関数の使い方

関数
setTimeout() は Window インターフェイスのメソッドで、時間切れになると、
関数または指定されたコードの断片を実行するタイマーを設定します。

構文
setTimeout(code)
setTimeout(code, delay)

setTimeout(functionRef)
setTimeout(functionRef, delay)
setTimeout(functionRef, delay, param1)
setTimeout(functionRef, delay, param1, param2)
setTimeout(functionRef, delay, param1, param2, /* …, */ paramN)

概要
ダイアログを表示し、4秒後に非表示にします。

実装コード

function onLoad() {
    //Type appropriate comment here, and begin script below
    showLoadingDialog();
    setTimeout(function() {
        hideLoadingDialog();

    }, 4000);
}

 

IT

Posted by arkgame