jQTouch中未捕获的TypeError [英] Uncaught TypeError in jQTouch
本文介绍了jQTouch中未捕获的TypeError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用jQtouch
中的滑动事件.为此,我有一个使用最新的jQtouch.js
的代码.但是,当我尝试初始化它时,我在浏览器控制台中收到此错误:
I am trying to use the swipe event in jQtouch
. For that purpose, i have a code which uses latest jQtouch.js
. But, when i try to initialize this, i get this error in my browser console :
Uncaught TypeError: undefined is not a function
此行中存在错误:
var jQT = new $.jQTouch({
});
但是,如果我不使用此行,那么swipe
事件将不起作用,因为jQtouch
不会被初始化.
However, if i do not use this line , then the swipe
event does not work, since, jQtouch
dose not get initialized.
我不知道该如何解决.任何帮助将不胜感激!
I have no idea how to solve this . Any help will be appreciated !
推荐答案
尝试从此处使用插件
然后您可以使用
var jQT = new $.jQTouch({
});
这篇关于jQTouch中未捕获的TypeError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文