JavaScript Date objects can only be instantiated by calling JavaScript Date as a constructor: calling it as a regular function (i.e. without the new operator) will return a string rather than a Date object; unlike other JavaScript object types, JavaScript Date objects have no literal syntax.
Date是内置对象你用
document.write()你也没定义为什么可以用呢?https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects
https://developer.mozilla.org/zh-CN/docs/Web/API/Document_Object_Model
Date为JS内置对象
Date();返回当前时间的字符串表示new Date();返回一个Date对象昨天刚好在知乎看到
https://www.zhihu.com/question/40338254