課程
/前端開發
/JavaScript
/JavaScript進階篇
好像沒看到結果
2015-01-28
源自:JavaScript進階篇 8-7
正在回答
window去掉也可以啊,window后面的點別忘了去
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>History對象</title>
</head>
<script type="text/javascript">
? var HL = window.history.length;
? document.write(HL);
</script>
<body>
</body>
</html>
注意window加上去。
我也是,window省略后看不到結果,把window加上能看到結果!
結果是1
舉報
本課程從如何插入JS代碼開始,帶您進入網頁動態交互世界
1 回答為什么沒有結果?好像也沒拼錯哪個單詞...
1 回答沒結果的,幫忙看看,謝謝
1 回答沒結果。。
3 回答看看我的吧,怎么沒有結果啊
4 回答怎么運行沒有結果啊,大神看看
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2015-10-04
window去掉也可以啊,window后面的點別忘了去
2015-07-26
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>History對象</title>
</head>
<script type="text/javascript">
? var HL = window.history.length;
? document.write(HL);
</script>
<body>
</body>
</html>
注意window加上去。
2015-04-24
我也是,window省略后看不到結果,把window加上能看到結果!
2015-02-15
結果是1