码迷,mamicode.com
首页 > 其他好文 > 详细

Cannot read property '_withTask' of undefined

时间:2019-11-21 14:08:19      阅读:73      评论:0      收藏:0      [点我收藏+]

标签:task   nbsp   二分法   template   strong   temp   没有   快速定位   属性   

前言

  Cannot read property ‘_withTask‘ of undefined

  突然一下子,就报这个错了,刚刚还好好呢

Bug分析

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

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

解决方法

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

  2.不用压缩版的vue

 

Cannot read property '_withTask' of undefined

标签:task   nbsp   二分法   template   strong   temp   没有   快速定位   属性   

原文地址:https://www.cnblogs.com/ifannie/p/11904810.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!