为什么history.current显示undefined?

nanjingsean 2003-06-10 03:52:44
为什么history.length显示4而history.current显示undefined?
<script language="javascrit">
function a()
{
alert(history.length);
alert(history.current);
}
</script>
...全文
117 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
烂笔头Danky 2003-06-12
  • 打赏
  • 举报
回复
IE不支持current属性,只有NS才支持current属性,而且需要打开UniversalBrowserRead权限!
李世垚 2003-06-12
  • 打赏
  • 举报
回复
用history.length就够了
我不知道还有current属性
blues-star 2003-06-12
  • 打赏
  • 举报
回复
history.go();
history.forward();
history.back();

history.length

IE上再没有其他的了。
zhanghk 2003-06-12
  • 打赏
  • 举报
回复
up
Reachless 2003-06-11
  • 打赏
  • 举报
回复
应该是没有指明这个history对象所属的window对象吧.

87,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧