前言
对比 Vue2 ,引出并展开 Vue3 。
本文讲述了 this 概念及应用场景,以及使用方法和代码示例详细讲解。
回忆 Vue2
我们在
Vue2
项目中,可能写得最多的单词就是 this 了,咱们无论是拿数据还是调方法,一律 this。
先来看个 Vue2 小示例:
export default {
data() {
return {
name: '月薪过万',
更多推荐
Vue3 - this 概念及使用方法(详细教程)
发布评论