未捕获的TypeError:$(...).flip不是函数 [英] Uncaught TypeError: $(...).flip is not a function
本文介绍了未捕获的TypeError:$(...).flip不是函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
不确定为什么要在本地运行但不能在服务器上运行.
Not sure why this works locally but doesn't work on a server.
我在索引页面上的调用是jQuery,然后是此插件,然后是我的JS其余部分.
My call on my index page goes jQuery, then this plugin, then the rest of my JS.
虽然它不执行我的功能,但我不确定为什么.有人可以解释为什么显示此错误:
It doesn't execute my function though and I'm not sure why. Can someone explain why it's showing this error:
未捕获的TypeError:$(...).flip不是函数
Uncaught TypeError: $(...).flip is not a function
这是我的功能:
var callFlip = function() {
var $card = $('.card').flip({
axis: 'y',
trigger: 'hover'
});
};
推荐答案
可以肯定的是,您没有包括将$.flip
函数定义为jQuery的JS文件.
Most certain that you are not including the JS file where the $.flip
function gets defined to jQuery.
这篇关于未捕获的TypeError:$(...).flip不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文