Home  >  Q&A  >  body text

history.length这个有什么用途??举几个实例呀

求大神指点

phpcn_u224phpcn_u2242861 days ago1005

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 22:51:02

    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.

    reply
    0
  • 阿神

    阿神2016-12-19 10:49:23

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

    reply
    0
  • Cancelreply