"TypeError: handler.call is not a function"问题

Posted lwming

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了"TypeError: handler.call is not a function"问题相关的知识,希望对你有一定的参考价值。

进入组件页面时,vue报错:Error in mounted hook: "TypeError: handler.call is not a function",

技术图片

造成报错原因就是生命周期钩子函数mounted: 是否有声明了未定义方法或是只声名了钩子函数。

处理方法:1.把mounted: 删除掉,

                  2.把mounted: 改为mounted(),

以上是关于"TypeError: handler.call is not a function"问题的主要内容,如果未能解决你的问题,请参考以下文章