timeStamp ʼþÊôÐÔ
¶¨ÒåºÍÓ÷¨
timeStamp ʼþÊôÐÔ¿É·µ»ØÒ»¸öʱ¼ä´Á¡£Ö¸Ê¾·¢ÉúʼþµÄÈÕÆÚºÍʱ¼ä£¨´Ó epoch ¿ªÊ¼µÄºÁÃëÊý£©¡£
epoch ÊÇÒ»¸öʼþ²Î¿¼µã¡£ÔÚÕâÀËüÊǿͻ§»úÆô¶¯µÄʱ¼ä¡£
²¢·ÇËùÓÐϵͳ¶¼Ìṩ¸ÃÐÅÏ¢£¬Òò´Ë£¬timeStamp ÊôÐÔ²¢·Ç¶ÔËùÓÐϵͳ/ʼþ¶¼ÊÇ¿ÉÓõġ£
Óï·¨
event.timeStamp
ʵÀý
ÏÂÃæµÄÀý×Ó¿É»ñµÃϵͳÆô¶¯¿ªÊ¼µÄʼþ´Á£º
<html>
<head>
<script type="text/javascript">
function showTimestamp(event)
{
var minutes = 1000*60
x=event.timeStamp;
alert(x/minutes)
}
</script>
</head>
<body onmousedown="showTimestamp(event)">
<p>Click in the document. An alert
box will alert the timestamp.</p>
</body>
</html>
TIY
- timestamp event
- ·µ»ØÏµÍ³Æô¶¯ÖÁ½ñµÄ·ÖÖÓÊý£¨IE ä¯ÀÀÆ÷²»Ö§³Ö£©¡£