我熟悉window.history.back()和window.history.forward() javascript对象。但是,有没有一种方法可以创建一个数组,并查看最后"X“个页面。
window.history.back()
window.history.forward()
发布于 2013-06-11 04:42:04
不,这将是一个巨大的安全问题。如果您愿意,您可以让history.length对它们进行计数。
history.length
发布于 2013-06-11 04:43:19
查看:
How do you get the previous url in Javascript?
简而言之,你可以得到以前访问过的网站(history.length)的数量,但不能得到url的数量。
https://stackoverflow.com/questions/17032415
相似问题