前进和后退历史不断?

时间:2016-02-15 09:24:37

标签: javascript console

history.go(+1);
history.go(-1);

需要执行history.go(+1)和history.go(-1)  经过几微秒的延迟。 我怎么能这样做?

我尝试过循环,但没有按照我想要的方式工作。

function l(){history.go(-1);setTimeout(100,function(){history.go(+1);});}

然后

l();

0 个答案:

没有答案
相关问题