function showDiv(objID){ //将时间转化为时间戳 var str = ‘2009/1/1‘; var ftime = str.replace(/-/g,‘/‘); var uftime = Date.parse(ftime)/1000; //将当前时间转化为时间戳 var curtime = Math.round(new Date().getTime()/1000.0); //alert(curtime); }
时间: 2024-11-03 10:59:43
function showDiv(objID){ //将时间转化为时间戳 var str = ‘2009/1/1‘; var ftime = str.replace(/-/g,‘/‘); var uftime = Date.parse(ftime)/1000; //将当前时间转化为时间戳 var curtime = Math.round(new Date().getTime()/1000.0); //alert(curtime); }