返回博主主页
摘要: https://blog.csdn.net/qq_24147051/article/details/108049705 中断或取消 Promise 链 Promise 已经成为了 JavaScript 管理异步操作的重要工具之一. 然而, 有的时候还是会很头痛: Promise // 等价于 `Pr 阅读全文
posted @ 2022-02-14 15:56 懒惰的星期六 阅读(419) 评论(0) 推荐(0) 编辑
摘要: test () { const f = (param) => new Promise((resolve, reject) => { setTimeout(resolve, param, param) }) const f2 = (param) => new Promise((resolve, rej 阅读全文
posted @ 2022-02-14 15:48 懒惰的星期六 阅读(364) 评论(0) 推荐(0) 编辑

Welcome to here

主页