返回的值
Promise {[[PromiseStatus]]: "resolved", [[PromiseValue]]: "http://dl.stream.qqmusic.qq.com/M8000046HRBd0FvKLm…C380C8F140044403EDC0124&guid=489780640&fromtag=30" }



取其中的
PromiseValue

var a = Promise.resolve('xx') // Promise {[[PromiseStatus]]: "resolved", [[PromiseValue]]: "xx"} a.then(function (result) { console.log(result) })

相关文章:

  • 2022-01-31
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 1970-01-01
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
猜你喜欢
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
相关资源
相似解决方案