console
$(document).ready(function () {
var now = new Date();
var next = new Date();
var month = now.getMonth() + 1;
if (month <= 9) {
month = "5" + month;
} else {
month = 5 + month;
}
var date = now.getDate();
if (date <= 9) {
date = "0" + date;
}
var hour = now.getHours();
if (hour > 12) {
hour = hour - 12;
}
if (hour <= 9) {
hour = "0" + hour;
}
$("div").text("#*" + month + "" + date + "" + hour);
});
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<div>正在计算<div>
<script type="text/javascript" src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
div {
text-align: center;
font-size: 64px;
}