蓝森林首页 | 返回主页 | 本站地图 | 站内搜索 | 联系信箱 |
 您目前的位置:首页 > 自由软件 > 技术交流 > 应用编程


    

蓝森林 http://www.lslnet.com 2006年8月25日 8:28

JS能得到网页下载时间吗?

谢谢

我也想知道。 比如取得网页的下载数据量也可以。

[html]
<script>var startTime=(new Date()).getTime();</script>

<body onload="alert('页面下载共计耗时 '+((new Date()).getTime()-startTime)+'毫秒');">

网页内容....

<img src="http://bbs.blueidea.com/images/blue/newtopic.gif" />

<iframe src="http://freehost08.websamba.com/hutia/BI_Tree/InfoCollection.htm" style="display:none;"></iframe>[/html]

好主意,将页面开始时间减去当前时间!




Copyright © 1999-2000 LSLNET.COM. All rights reserved. 蓝森林网站 版权所有。 E-mail : webmaster@lslnet.com