获取时间毫秒数
PHP
1 $time = explode ( " ", microtime () );
2 $time = $time [1] . ($time [0] * 1000);
3 $time2 = explode ( ".", $time );
4 $time = $time2 [0];
2 $time = $time [1] . ($time [0] * 1000);
3 $time2 = explode ( ".", $time );
4 $time = $time2 [0];
Javascript
1 <script language="javascript">
2 var currDate = new Date;
3 document.write(currDate.getTime());
4 </script>
3 document.write(currDate.getTime());
4 </script>