这个应用程序使用OCR读取图像文本并将其转换为JSON数组,然后将其写入HTML表并通过使用phpspreedsheet将其导出为Excel工作表,该应用程序一直运行得很好,直到我在Javascript函数不再工作后丢失了一些东西>Uncaught SyntaxError: await is only valid in async functions and the top level bodies
我正在尝试使用Jest测试异步函数。到目前为止,我有三项考试似乎都通过了。I有以下异步函数: try {
const url = "https:This error originated either by throwing inside of an async function without a catch block, or by rejecting