Fetch the repository succeeded.
window.onload = function () {
var show = document.getElementById("show");
setInterval(function () {
var time = new Date();
// 程序计时的月从0开始取值后+1
var m = time.getMonth() + 1;
var d = time.getDate();
var h = time.getHours();
var mt = time.getMinutes();
var ms = time.getSeconds();
if (m < 10) {
m = '0' + m;
}
if (d < 10) {
d = '0' + d;
}
if (h < 10) {
h = '0' + h;
}
if (mt < 10) {
mt = '0' + mt;
}
if (ms < 10) {
ms = '0' + ms;
}
var t = time.getFullYear() + "-" + m + "-" + d + " " + h + ":" + mt + ":" + ms;
show.innerHTML = t;
}, 1000);
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。