Home > Article > Web Front-end > js displays time js displays last modified time_javascript skills
This example will display the last modification time of web page files. First, I added a text box control to the page, then used javascript to create a function, called the lastModified property of the document object in the function, and then displayed the last modified time of the file in the text box of the page. This method can be viewed The page update time.
Implementation process:
1. Write a custom function, the code is as follows: