当前位置:网站首页>error Parsing error: Unexpected reserved word ‘await‘.
error Parsing error: Unexpected reserved word ‘await‘.
2022-06-25 16:08:00 【. calin.】

reason :
await Keywords only in async function Effective in . If in async function The function uses await , You will only get one grammatical error .
The modified code
this.$refs.formRef.validate(async (varlid) => {
if (!varlid) return
const result = await this.$http.post('login', this.loginForm)
console.log(result)
边栏推荐
- 分享自己平时使用的socket多客户端通信的代码技术点和软件使用
- JS的遍历和分支判断(2022年6月24日案例)
- What are some tricks that novice programmers don't know?
- 不要再「外包」AI 模型了!最新研究发现:有些破坏机器学习模型安全的「后门」无法被检测到
- JS notes
- [issue 24] one year experience of golang to develop futu
- Rxjs TakeUntil 操作符的学习笔记
- Detailed explanation of IVX low code platform series -- Overview (I)
- MySQL installation tutorial
- DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection翻译
猜你喜欢

说下你对方法区演变过程和内部结构的理解

Bugly hot update usage

Alvaria宣布客户体验行业资深人士Jeff Cotten担任新首席执行官

不要再「外包」AI 模型了!最新研究发现:有些破坏机器学习模型安全的「后门」无法被检测到
Consumer and producer cases of inter thread synchronization (condition variable)

揭秘GaussDB(for Redis):全面对比Codis

Rapport de la main - d'oeuvre du Conseil de développement de l'aecg air32f103cbt6

Understand the execution sequence of try catch finally in one diagram

基于神经标签搜索,中科院&微软亚研零样本多语言抽取式摘要入选ACL 2022

AutoK3s v0.5.0 发布 延续简约和友好
随机推荐
Don't underestimate the integral mall, its role can be great!
Multithreading, parallelism, concurrency, thread safety
什么是NFT数字藏品?
面试官:你简历上说精通mysql,那你说下聚簇/联合/覆盖索引、回表、索引下推
Error: homebrew core is a shallow clone
转换Cifar10数据集
Understand the execution sequence of try catch finally in one diagram
VectorDraw Developer Framework 10.1001 Crack
镁光256Gb NAND Flash芯片介绍
一行代码可以做什么?
Rxjs TakeUntil 操作符的学习笔记
GridLayout evenly allocate space
合宙Air32F103CBT6开发板上手报告
B站付费视频使up主掉粉过万
[Third Party framework] retrofit2 (1) of network request framework -- Getting Started Guide
Time wheel and implementation analysis of time wheel in go zero
Once the code was encrypted by the company's computer, the compilation failed
合宙Air32F103CBT6開發板上手報告
普通人的2022春招总结(阿里、腾讯offer)
Gold three silver four, an article to solve the resume and interview