franco_lrxu

Results 2 comments of franco_lrxu

### 原题代码 ``` type User = { id: number, kind: string } function makeCustomer (u:T) :T { return { id: u.id, kind: 'customer' } } ``` ### 分析 原题中makeCustomer定义是一个函数,入参是一个类型T的形参u,返回值类型为继承了类型User的类型T(**这一点意味着T的类属性至少要包含id和kind**),但是该函数体实现却是返回一个仅仅分别含有id和kind两个属性的一个对象。 ###...

> waterfall page use keepAlive , click to other page and goback,the waterfall page column become one reflowHandler , but , comparative consumption performance when a lot of cards on...