在html中使用javascript有2中方法
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
</head>
<body>
<script>
document.write("hello world!");
document.write("</br>");
document.write(document.lastModified);
</script>
</body>
</html>