js中setTimeout()用法

setTimeout(method,time)這是用來設定一個時間,時間到了,就會執行指定method 如: 當事件點擊時候,loadingShow()先執行loadshow.style.display=「block」; 然後三秒之後:執行loadshow.style.display=「none」;
相關文章
相關標籤/搜索