Анд*_*зюк 5 javascript node.js
试图async/await与快递一起使用。但是出现错误
const getData = async () => {
^
SyntaxError: Unexpected token (
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
Run Code Online (Sandbox Code Playgroud)
节点版本-8.5.0
部分代码
const getData = async () => {
return 'all done';
}
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?谢谢
| 归档时间: |
|
| 查看次数: |
1047 次 |
| 最近记录: |