Why does Chrome Dev Tool show a dates __proto__ as Invalid Date?

后端 未结 3 888
情歌与酒
情歌与酒 2020-12-02 16:33

I know __proto__ is deprecated (or not part of the standard) and all that but I\'m still curious as to what it means when it says Invalid Date when I look at th

3条回答
  •  既然无缘
    2020-12-02 16:47

    The prototype of a Date instance has no defined value. Only the instance has a value. You define it when you instantiate it.

提交回复
热议问题