Js页面自动跳转

//声明 t = 1

var t = 10;

function openwin() {

  t -= 1;

  if(t==0){

    location.href='index2.html';

  }

  setTimeout("openwin()", 300);

}

openwin();

原文地址:https://www.cnblogs.com/JamyWong/p/10522713.html