今天在用vue实战疫情大数据移动端项目时,控制台报错:Error in mounted hook: "TypeError: handler.call is not a function"
原因:生命周期生命钩子函数mounted: {}只声名了钩子函数。
解决方案:
1.把mounted: {}删除
2.将mounted: {}改为mounted(){}
今天在用vue实战疫情大数据移动端项目时,控制台报错:Error in mounted hook: "TypeError: handler.call is not a function"
原因:生命周期生命钩子函数mounted: {}只声名了钩子函数。
解决方案:
1.把mounted: {}删除
2.将mounted: {}改为mounted(){}