/** * 获取时间戳 * @param {*长度} len */ export function getTimestamp(len=10) { var tmp = Date.parse( new Date() ).toString(); tmp = tmp.substr(0,len); return tmp; }
前端JavaScript获取时间戳
猜你喜欢
转载自www.cnblogs.com/ChineseLiao/p/10153030.html
今日推荐
周排行