jQuery event.timeStamp 属性

jQuery 教程 · 2019-03-11 07:44:46

实例

返回鼠标左键第一次按下到最后一次抬起所消耗的毫秒数:

$("button").click(function(event){ $("span").text(event.timeStamp); });

定义和用法

event.timeStamp 属性返回返回鼠标左键第一次按下到最后一次抬起所消耗的毫秒数。

语法


event.timeStamp

参数 描述
event 必需。event 参数来自事件绑定函数。

点击查看所有 jQuery 教程 文章: https://codercto.com/courses/l/35.html

查看所有标签

Introduction to Graph Theory

Introduction to Graph Theory

Douglas B. West / Prentice Hall / 2000-9-1 / USD 140.00

For undergraduate or graduate courses in Graph Theory in departments of mathematics or computer science. This text offers a comprehensive and coherent introduction to the fundamental topics of graph ......一起来看看 《Introduction to Graph Theory》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换