我要如何答应返回值对象?

时间:2019-12-10 05:44:59

标签: javascript asynchronous promise

    const a = async () => {
        const b = await getData();
        console.log(b); // Object...
        return b;
    }
    return a(); // Promise... -> I want Object...

我想要返回值对象...

帮帮我...

0 个答案:

没有答案