【发布时间】:2020-05-25 17:39:38
【问题描述】:
我正在开发一个 ASP.NET Core 2.2 应用程序并使用 Bundler & Minifier 来缩小 js 代码。当我尝试使用 async\await 操作添加.js 文件时:
updatePermissionsConnection.onclose(
async () => {
await startUpdatePermissionsConnection();
});
我收到很多错误:
错误 0 应为 ')':=>
错误 0 应为“;”
错误 0 预期表达式:)
错误 0 应为“)”:=>
错误 0 应为“;”
错误 0 预期表达式:)
如何解决?
【问题讨论】:
标签: c# asp.net-core bundling-and-minification