Uncaught TypeError in jQTouch

懵懂的女人 提交于 2020-01-06 10:21:33

问题


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

The error is present here in this line :

 var jQT = new $.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 !


回答1:


Try using the plugin from here

https://github.com/senchalabs/jQTouch/blob/eb1291bf336462d7c5aa2521838ecf797395442a/src/reference/jqtouch.js

and then you can initialize using

var jQT = new $.jQTouch({

}); 


来源:https://stackoverflow.com/questions/22956933/uncaught-typeerror-in-jqtouch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!