当前位置:网站首页>JS get the current time (year month day hour minute second)
JS get the current time (year month day hour minute second)
2022-07-28 22:42:00 【Let me take a nap】
HTML Code
<p id="time"></p>js Code
<script>
var time = document.getElementById("time")
function show() {
let date = new Date();
let year = date.getFullYear(); // Get current year
let mon = date.getMonth() + 1; // Get current month
let da = date.getDate(); // Get current day
let h = date.getHours(); // For hours
let m = date.getMinutes(); // Get minutes
let s = date.getSeconds(); // Get seconds
time.innerText = `${year} ${mon} ${da} ${h}:${m}:${s}`;
}
setInterval("show()", 1000);
</script>边栏推荐
- Static details of static members
- 微信小程序剪切图片的功能
- Detection and tracking evaluation index
- 容器化配置启动redis集群 单机6节点 3主3从
- STM32 - Communication
- There will be a black line on the border when the button in the wechat applet is clicked
- Att & CK Threat Intelligence
- ES6 concept
- Ngx+sql environment offline installation log (RPM installation)
- Integrating database Ecology: using eventbridge to build CDC applications
猜你喜欢
![Differernet [anomaly detection: normalizing flow]](/img/75/958d753c20227fbbfe1085e7d6ce6f.png)
Differernet [anomaly detection: normalizing flow]

c语言实现字符串逆序排列
Integrating database Ecology: using eventbridge to build CDC applications
![MKD [anomaly detection: knowledge disruption]](/img/15/10f5c8d6851e94dac764517c488dbc.png)
MKD [anomaly detection: knowledge disruption]

How to install WiFi correctly

LVS+KeepAlived高可用部署实战应用

STM32 - DMA direct memory access controller (cubemx configures DMA)
![Memseg [anomaly detection: embedded based]](/img/10/aea2b6ecf55e04fe24f78e5fb897be.png)
Memseg [anomaly detection: embedded based]

Bluetooth smart Bracelet system based on STM32 MCU

Ultra detailed visual studio 2019 running littlevgl (lvgl) simulator
随机推荐
PaddleNLP基于ERNIR3.0文本分类:WOS数据集为例(层次分类)
Baidu map usage
Leetcode integer exercises integer inversion
Use REM to make the font size adaptive to the screen
20-09-27项目迁移到阿里折腾记录(网卡顺序导致服务无法通过haproxy连接到db)
STM32 - Communication
flask之蓝图 补充openpyxl
ATT&CK初步了解
Sword finger offer II 063. replacement word (medium prefix tree string)
20-09-27 the project is migrated to Alibaba toss record (the network card order makes the service unable to connect to DB through haproxy)
[connect set-top box] - use ADB command line to connect ec6108v9 Huawei Yuehe box wirelessly
Summary of common error types in JS
职场pua但有道理
Memseg [anomaly detection: embedded based]
Closure, prototype and original link
76. Minimum coverage substring (hard sliding window hash table string)
How do we do full link grayscale on the database?
105. Construct binary tree from preorder and inorder traversal sequence (medium binary tree DFS hash table binary tree)
96. Different binary search trees (medium binary search tree dynamic planning)
Research cup element recognition multi label classification task based on ernie-3.0 cail2019 method