摘要:
const PENDING = 'pending', FULFILLED = 'fulfilled', REJECTED = 'rejected' class MyPromise { constructor(executor) { this.state = PENDING this.value = 阅读全文
摘要:
<script> /* Promise面试题 */ // 1.基本的Promise面试题 const promsie = new Promise((resolve, reject) => { console.log(1) resolve() console.log(2) }) promsie.the 阅读全文