如何从Promise的返回值中取到[[PromiseValue]] ?

在一次使用axios封装请求时, 请求后台返回的数据是[[PromiseValue]] 
Promise的设计文档中说了,[[PromiseValue]]是个内部变量,外部无法得到,只能在then中获取。

 

 

 

 最终请求可以返回数据(就是忘记了then)

 

posted @ 2020-01-03 11:06  深巷漫步  阅读(15029)  评论(0编辑  收藏  举报
/* 看板娘 */