let ht = document.getElementsByTagName('html')[0];
//时间从后台获取,转换为时间戳
const t = new Date('2022-12-20 13:13:31').getTime();
cont t1 = new Date().getTime()//当前时间戳
if(t>t1){
ht.getAttributeNode('style').value = 'filter:grayscale(100%)'
}else{
ht.getAttributeNode('style').value = 'filter:grayscale(0%)'
}