1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 10:22:23 +00:00

refactor: adjust support date

This commit is contained in:
ruanyf 2020-05-13 13:51:58 +08:00
parent 6f59bc38e1
commit 3832b6a691

View File

@ -210,8 +210,8 @@ function li_create_linkage(li_tag, header_level) {
}
function create_banner(element) {
// 2020年4月25日
var deadline = new Date(2020, 3, 25);
// 2020年8月15日
var deadline = new Date(2020, 7, 15);
if (deadline - (new Date()) < 0) return;
var styleStr = [