使用户点击后退按钮使效三行代码

  for(var i=0;i<10;i++)

  location.href="#"+i;

  setInterval(" history.go(1)",200);