vue获取当前时间
new Date() 获取当前时间function() {let aData = new Date();console.log(aData) //Wed Aug 21 2019 10:00:58 GMT+0800 (中国标准时间)let dateValue = aData.getFullYear() + "-" + (aData.getMonth() + 1) + "-" + aData.getD
·
new Date() 获取当前时间
function() {
let aData = new Date();
console.log(aData) //Wed Aug 21 2019 10:00:58 GMT+0800 (中国标准时间)
let dateValue = aData.getFullYear() + "-" + (aData.getMonth() + 1) + "-" + aData.getDate();
console.log(this.value) //2019-8-20
}
参考地址:https://blog.csdn.net/qq_43681948/article/details/99831624
更多推荐
已为社区贡献2条内容
所有评论(0)