JS基础案例19-Date()对象简单应用 2018-10-05 本文已影响0人 hi__world 弹窗显示今天是周几。 结果源码: <script> var a=new Date() alert("今天是周"+a.getDay()) </script>