我遵循应该获取数据异步的代码:
methods : {
btn() {
console.log("Hello");
var url = "https://jsonplaceholder.typicode.com/users";
let mydata = await fetch(url);
console.log(mydata);
}
}
我收到错误:
Module build failed: SyntaxError: D:/app3/src/App.vue: await is a reserved word (19:19)