Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 javascript 中检测互联网连接速度和/或带宽?
具有类似 isSlow() 函数的东西会很好,因为我真的不明白如何解释连接速度的值,也不知道什么是慢的,什么不是。
window.test_start = new Date(); $.get('10mbfile.dat',function(){ var test_end = new Date(); var result = 10 / (test_end - test_start); // mb/s });