-1
的$(document)。在( '准备好',contentLockerShow);
该生产线将弹出一个名为contentLockerWrapper的div在页面加载时,我只是想拖延弹出20秒,所以我改变了
的$(document)。在('准备',contentLockerShow);
与
的setTimeout(contentLockerShow,20000);
但是contentLockerBackground弹出窗口在包装和屏幕被锁定之前弹出apears。
这是功能
function contentLockerShow(){
contentLockerBackground.animate({'opacity':'.6'}, 500);
contentLockerWrapper.fadeIn(500);
if(contentLockerCompleted == false){
contentLockerCompleted = true;
console.log(contentLockerCompleted);
}
希望你会发现这个链接有用 http://stackoverflow.com/questions/3468607/why-does-settimeout-break-for-large-millisecond-delay-values –