摘要:
使用场景 在一些时候,希望一件task不能太快完成,需要大于多少时间才可以执行,就可以使用Promise的gtTime方法. 使用方式 Promise.gtTime(f1(), 5000).then(f2); function f1() { var promise = Promise(); setTimeout(fun... 阅读全文
Copyright © 2025 【当耐特】
Powered by .NET 9.0 on Kubernetes