Cannot read property '_withTask' of undefined

前言vue

  Cannot read property '_withTask' of undefinedit

  忽然一会儿,就报这个错了,刚刚还好好呢方法

Bug分析压缩

  1.是在template中调用了某个方法,可是你没有在methods定义undefined

  2.方法定义了,可是依旧报这个错,多是你用了压缩版的vue,没有到方法定义以及属性

解决方法

  1.用二分法,快速定位是什么方法没有在methods定义

  2.不用压缩版的vue

相关文章
相关标签/搜索