const nowTime = new Date().valueOf()
const timeStr = dayjs(nowTime).format('YYYYMMDDHH')
console.log(timeStr)
<!DOCTYPE html>
<html>
<head>
<title>Dayjs Example</title>
<script src="https://cdn.jsdelivr.net/npm/dayjs"></script>
</head>
<body>
<!-- 页面内容 -->
</body>
</html>