vue watch bug记录

watch中,写箭头函数,获取不到正确的this

 

 

 

 

 

换成function,正确取到this

 

posted @ 2018-10-23 11:20  吃饭睡觉打逗逗  阅读(323)  评论(0)    收藏  举报