Runoops Demo
jsref 实例演示
实例首页
自学教程
效率工具箱
源代码
外部库
0
重置
下载
上下布局
运行
<!DOCTYPE html> <html> <body> <p id="demo">Click the button to display the date after setting the date to be the last day of last month.</p> <button onclick="myFunction()">Try it</button> <script> function myFunction() { var d = new Date(); d.setUTCMonth(d.getUTCMonth(),0); var x = document.getElementById("demo"); x.innerHTML=d; } </script> </body> </html>
运行结果
刷新
放大
全屏
外部库
搜索并选择 CDN 库,将自动写入源代码(可再手动调整)
关闭
staticfileCDN
cloudflareCDN
添加