标签: javascript node.js asynchronous async-await synchronous
我只是不明白如何同步执行此功能?
JAVA_HOME
结果是我有一个承诺function (value) { const img = (async () => { const image = await base64Img.requestBase64(value); return image; })(); return img; } ,但是我在那里需要结果。请帮忙:)
function (value) { const img = (async () => { const image = await base64Img.requestBase64(value); return image; })(); return img; }