作者: 徐海强ts内置类型Partial将其变为可选type Partial<T> = { [P in keyof T]?: T[P]; };这里稍微解释一下keyof T 拿到T 所有属性名, ...
確定! 回上一頁