速度不是一个函数,显示流星错误 [英] velocity is not a function materialize showing error in meteor

查看:66
本文介绍了速度不是一个函数,显示流星错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

materialize.js:3503 Uncaught TypeError: $(...).find(...).css(...).velocity is not a function
(anonymous function) @ materialize.js:3503
jQuery.event.dispatch @ jquery.js:4665
elemData.handle @ jquery.js:4333

当我点击卡片(进行追踪)时,控制台中会显示错误

error in console shows up when I click on card (materailize)

推荐答案

这是因为您可能在head标记中包含了jquery的另一个版本.当您安装带有流星的materailize时,它还会添加jquery作为其依赖项.两种版本相互冲突.您需要做的就是在您的head标签中排除该jquery script标签.

It's Becuase you may be including another version on jquery in you head tag. When you install materailize with meteor it also adds jquery as its dependency. Both versions are conflicting with each other. All you need to do is exclude that jquery script tag in your head tag.

这篇关于速度不是一个函数,显示流星错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆