vue调函数时参数this的写法

js写法:@click="switchChecked(this)"

Vue写法:@click="switchChecked($event)"

发布了107 篇原创文章 · 获赞 33 · 访问量 20万+

猜你喜欢

转载自blog.csdn.net/qq_36069339/article/details/97262275