mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
获取当年年份
This commit is contained in:
@@ -246,3 +246,8 @@ export function getDay(day) {
|
||||
return tYear + "-" + tMonth + "-" + tDate;
|
||||
}
|
||||
|
||||
// 获取当年年份
|
||||
export function getYear() {
|
||||
let nowDate = new Date();
|
||||
return nowDate.getFullYear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user