您的位置 首页 知识 // 使用JavaScript进行日期时刻设置 发布于 2025 年 9 月 15 日 阅读(1) document.getElementById(‘datetimepicker’).value=new Date().toISOString().slice(0, 16);