fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"> </script> <script> $(document).ready(function(){ $("button").click(function(event){ $("span").text(event.timeStamp); }); }); </script> </head> <body> <p>返回鼠标左键第一次按下到最后一次抬起所消耗的毫秒数:<span style="color:red">unknown</span> 毫秒。</p> <button>点我</button> </body> </html>
运行结果