<!DOCTYPE html>
<html>
<script type="text/javascript">
function displayDate()
{
document.getElementById("demo").innerHTML=Date();
}
</script>
<body>
<button type="button" οnclick="displayDate()">显示日期</button>
<p id="demo"><p>
</body>
</html>
javascript显示日期
最新推荐文章于 2024-06-27 19:59:39 发布