获取当前时间,日期格式function currentDate() { var date = new Date(); var y = date.getFullYear(); var m = date.getMonth() + 1; // m = m < 10 ? ('0' + m) : m; var d = date.getDate(); // d = d < 10 ? ('0' + d) : d; var h = date.getHours(); // h = h < 10 ? ('0
/** * Created by Administrator on 2019/11/15. *指尖敲打着世界 ----一个阳光而又不失帅气的少年!!!. */ // js获取当前时间,并格式化为"yyyy-MM-dd HH:mm:ss" function getFormatDate() { var date = new Date(); var month = date.getMonth() + 1; var strDate = date.getDate(); if (month >