直播平台软件开发,登陆时获取当前时间
getNowDate() {
var myDate = new Date;
var year = myDate.getFullYear()
var mon = myDate.getMonth() + 1
var date = myDate.getDate()
var hours = myDate.getHours()
var minutes = myDate.getMinutes()
var seconds = myDate.getSeconds()
var now = year + "-" + mon + "-" + date + " " + hours + ":" + minutes + ":" + seconds
return now
},
以上就是直播平台软件开发,登陆时获取当前时间, 更多内容欢迎关注之后的文章
标签:软件开发,myDate,获取,直播,登陆,var From: https://www.cnblogs.com/yunbaomengnan/p/16937874.html