报错:Unexpected reserved word ‘await’?
问题描述
async和await是成对出现的。会报上边的错是因为没有把async放在和await最近的函数上。
async confirmAll() {
this.KaTeX parse error: Expected '}', got 'EOF' at end of input: … this.message.success(‘操作成功!’)
}
}
})
}
confirmAll() {
this.KaTeX parse error: Expected '}', got 'EOF' at end of input: … this.message.success(‘操作成功!’)
}
}
})
}
async和await是成对出现的。