感谢您的支持,我会继续努力的!
打开微信扫一扫,即可进行扫码打赏哦
点我查看本站打赏源码!
Powered by RUNCODEX.COM,学的不仅是技术,更是梦想!!!
<html>
<head>
<meta charset="utf-8"/>
<title>this is a js test</title>
<script>
function displayDate();
</script>
</head>
<body>
<H1>
my first javasctipt program.
</H1>
<p id="demo">
hello ,my friend. 这是一个段落。
</p>
<botton type="button" onclick="displayDate()">显示日期</botton>
</body>
</html>
xxxxxxxxxx
function displayDate(){
document.getElementById("demo").innerHTML=Date();
}
输入 CSS 代码……