Javascript's getYear() function is intended to obtain the current "year", such as:
]
Execute under IE browser is the correct "2008", but under browsers such as Firefox, it is executed as "108". The reason is that in browsers such as Firefox, getYear returns the value of "the current year minus 1900" (that is, the year base is 1900). Microsoft's IE directly adds 1900 when today's year is greater than or equal to 2000, and returns 200* instead of 10*. So for browsers such as Firefox, you can use the following code:
If you need to introduce external Js, you need to refresh it to execute
]
[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute ]