document.getElementById('ShowDiv').innerHTML = '将在'+num+'秒后自动跳转到主页' ;if(num == 0) { window.location = URL; } }