Js页面自动跳转

//声明 t = 1

var t = 10;

function openwin() {

  t -= 1;

  if(t==0){

    location.href='index2.html';

  }

  setTimeout("openwin()", 300);

}

openwin();

posted @ 2019-03-13 14:04  Jamy  阅读(2893)  评论(0编辑  收藏  举报