摘要:
webpack also needs Promise for import() and require.ensure(). If you want to support older browsers, you will need to load a polyfill before using the 阅读全文
摘要:
1.使用async,await function sleep(time){ return new Promise((resolve,reject)=>{ setTimeout(resolve,time) }) } async function init(){ console.log('do some 阅读全文
摘要:
The term “render prop” refers to a technique for sharing code between React components using a prop whose value is a function. <DataProvider render={d 阅读全文
摘要:
相同点 都可以描述一个对象或者函数 都允许拓展(extends) 不同点 type 可以声明基本类型别名, // 基本类型别名 type Name = string // 联合类型 interface Dog { wong(); } interface Cat { miao(); } type Pe 阅读全文