聊一聊 Vue 中 watch 对象中的回调函数为什么不能是箭头函数?
摘要:聊一聊 Vue 中 watch 对象中的回调函数为什么不能是箭头函数 本文重点知识点速览: Vue 中的 watch 对象中的回调函数不能是箭头函数。 箭头函数中的 this 指向的是函数定义时所在的对象,普通函数中的 this 指向的是函数运行时所在的对象。 函数的 this 指向问题。 一起学习
阅读全文
posted @ 2019-12-04 08:39
posted @ 2019-12-04 08:39