this.$axios.get("./data.json").then(function(result){
console.log(this) //undefine
})
with regard to the problem of pointing to the axios callback function this, most articles on the Internet only recommend using the arrow function instead of the ordinary function to solve the problem, but they do not explain why this points to undefine, and should point to window, in my understanding, because the caller of this anonymous callback function must be the window object, but the result is that undefined, feels that my understanding of this pointing has collapsed again. -. -