gpt4 book ai didi

javascript - 通过 JavaScript 显示日期

转载 作者:行者123 更新时间:2023-11-30 12:53:06 26 4
gpt4 key购买 nike

<分区>

我想通过 javascript 在 html 页面上显示当前日期。我尝试使用它,但它在 eclips 浏览器中显示当前日期,但在 Chrome、IE、Mozilla Firfox 等其他浏览器中未显示当前日期。你能帮我吗? .我的 java 脚本是这样的。 .

<script type="text/javascript">

<!--today=new Date();
document.write("Date:",today.getDate(),"/",today.getMonth()+1,"/",today.getYear());
-->
</script>

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com