lsc9

Results 5 comments of lsc9

> > > 我们会发现,相比寄生组合式继承,ES6 的 class 多了一个 Object.setPrototypeOf(Child, Parent) 的步骤。 > > > > > > 好奇 es6 多了这一个步骤的原因,继承静态属性和方法吗? > > 除此之外也可以通过构造方法(类)来判断两个“类”是否是继承关系吧,比如: > > ```js > Child instanceof Parent //...

@shjames > ![avatar](http://temp-ma-client.huodonghezi.vip/imagesite/media/image/2022/4/28/Ojbouxqybt.png) > 请问大佬,为什么上面这种间接赋值会报错?而下面这种直接赋值就不会? > ![avatar](http://temp-ma-client.huodonghezi.vip/imagesite/media/image/2022/4/28/1iqw3MpFBv.png) 上面的是数组类型赋值给元组类型,所以报错; 下面的直接是元组类型。

@TLovers > @yangliguo7 > > > 这和ts 无关,但是请问下,为什么 > > ``` > > const NumericObject = { > > [1]: "冴羽一号", > > [2]: "冴羽二号", > > [3]: "冴羽三号" >...

发现一处笔误: ![image](https://user-images.githubusercontent.com/20458750/229708093-ffd0576d-587d-4707-a7d2-5f220cdea1bc.png) 应该是 **显式类型(Explicit Types)**。 @mqyqingfeng

@mqyqingfeng // Ps:也是在严格模式下的 ![image](https://user-images.githubusercontent.com/20458750/231928029-46e73895-7b9b-4711-9a2f-9d56616e339f.png) ![image](https://user-images.githubusercontent.com/20458750/231928148-35a0a5ba-1321-4c92-92d8-9b5f076ec957.png) ![image](https://user-images.githubusercontent.com/20458750/231928186-34391de6-760e-4b9b-886d-fa3218562d88.png) ``` // result的类型应该类似于: { "No": 0, "YES": 1 } ```