Class keyword in Javascript

前端 未结 7 1578
时光取名叫无心
时光取名叫无心 2020-12-03 04:17

According to this article it should be a Javascript 2.0 way to define class. However, I never saw that in practice. Thus the question. How to use class keyword and what is t

7条回答
  •  一生所求
    2020-12-03 04:59

    You never saw it in practice because virtually nothing supports JavaScript 2.0. That draft is from a specification that died before being anything other than draft.

提交回复
热议问题