下面的JS代码输出当前网页最后修改时间,用到了document.lastModified属性
<!DOCTYPE html> <html> <body> This document was last modified on: <script> document.write(document.lastModified); </script> </body> </html>
上面的代码输出:06/27/2013 14:08:17
下面的JS代码输出当前网页最后修改时间,用到了document.lastModified属性
<!DOCTYPE html> <html> <body> This document was last modified on: <script> document.write(document.lastModified); </script> </body> </html>
上面的代码输出:06/27/2013 14:08:17