摘要:
1. 基础定义 interface 接口 专门描述对象结构、类、函数、数组,支持合并声明,面向对象风格。 interface User { id: number name: string } type 类型别名 给任意类型起别名(对象、联合、交叉、基础类型、元组),不能重复声明合并。 type Us 阅读全文
摘要:
function createFetchWithTimeout(timeout=2000){ return function (url,options){ return new Promise((resolve,reject)=>{ const singalController=new AbortC 阅读全文