📄 03取得网络的下载速度.htm
字号:
<html>
<head>
<title>取得网络的下载速度</title>
<script language="javascript">
<!--
time1 = (new Date()).getTime();
pageSize = 500/1024;
function getVelocity(){
time2 = (new Date()).getTime();
time = time2 - time1;
time = time / 1000;
v = Math.floor(pageSize / time);
alert("网络的下载速度为: "+v+" KB/妙");
}
//-->
</script>
</head>
<body onLoad="getVelocity()">
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -