在baiindex.html中的<script>标签,输入js代码:
var a = ‘2019-06-01 12:05:20‘;
var date = new Date(a.replace(‘-‘, ‘/‘));
var now = new Date();
if (date.getTime() > now.getTime()) {
document.body.innerText = a + ‘大于当前系统时间‘;
} else {
document.body.innerText = a + ‘不大于当前系统时间‘;
}