如何返回[[PromiseResult]]伙计们,请帮忙,谢谢我使用vue js和laravel
您可以通过将then方法添加到Promise中来获得该结果。例如:
then
new Promise((resolve, reject) => resolve('success')).then(res => console.log(res))
此代码将记录您的[[PromiseResult]]对象。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
点击生成二维码
我来说两句