JS获取当前时间 2018/02/28 | JS | Kiddo | 暂无评论 | 1750 views function getTime() { var now= new Date(), h=now.getHours(), m=now.getMinutes(), s=now.getSeconds(), ms=now.getMilliseconds(); return (h+”:”+m+”:”+s+ ” ” +ms); }