history.length这个有什么用途??举几个实例呀
phpcn_u224
phpcn_u224 2016-12-19 10:48:24
0
2
1008

求大神指点

phpcn_u224
phpcn_u224

reply all(2)
数据分析师

What is the use of history.length?? Give a few examples - PHP Chinese website Q&A - What is the use of history.length?? Give a few examples - PHP Chinese website Q&A

Take a look around and learn.

阿神

使得window.history.length的值可以判断是否存在上一页。但是这个值在不同浏览器中有不同的标准。IE是用0表示没有上一页,其它标准浏览器则是至少都为1,大于1表示有上一页。可以通过这个判断是否可以返回前一页。

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!