Home  >  Article  >  Web Front-end  >  Automatically display the last updated time using javascript_Basic knowledge

Automatically display the last updated time using javascript_Basic knowledge

WBOY
WBOYOriginal
2016-05-16 19:16:46950browse

I frequently update web pages, but I’m always too lazy to figure out the last updated time.
The following uses javascript to display the last updated time.


Haha, it’s that simple. <script> <BR><!--hide script from old browsers <BR>document.write("本页最后更新日期: " + document.lastModified + "") <BR>// end hiding --> <BR></script>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn