Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript JQTouch开关页面错误_Javascript_Jquery_Ajax_Jqtouch - Fatal编程技术网

Javascript JQTouch开关页面错误

Javascript JQTouch开关页面错误,javascript,jquery,ajax,jqtouch,Javascript,Jquery,Ajax,Jqtouch,我试图用JQTouch切换到另一个“页面”,但它似乎不起作用。 我的代码如下所示: $('#main').on('submit', '#product-form', function() { var jQT = new $.jQTouch(); jQT.goTo('#search-results', 'slide'); }); Uncaught TypeError: Canno

我试图用JQTouch切换到另一个“页面”,但它似乎不起作用。 我的代码如下所示:

$('#main').on('submit', '#product-form', function() {

                     var jQT = new $.jQTouch();
                    jQT.goTo('#search-results', 'slide');

                });
Uncaught TypeError: Cannot set property 'framework' of undefined
j.jQTouchjqtouch.min.js:18
(anonymous function)1:146
a.fn.delegatezepto.min.js:4
jzepto.min.js:4
a.fn.triggerzepto.min.js:4
J.fn.eachzepto.min.js:4
J.fn.eachzepto.min.js:4
a.fn.triggerzepto.min.js:4
Ijqtouch.min.js:8
Ljqtouch.min.js:10
jzepto.min.js:4
a.fn.triggerzepto.min.js:4
J.fn.eachzepto.min.js:4
J.fn.eachzepto.min.js:4
a.fn.triggerzepto.min.js:4
Djqtouch.min.js:1
var jQT = new $.jQTouch({});
抛出的错误如下所示:

$('#main').on('submit', '#product-form', function() {

                     var jQT = new $.jQTouch();
                    jQT.goTo('#search-results', 'slide');

                });
Uncaught TypeError: Cannot set property 'framework' of undefined
j.jQTouchjqtouch.min.js:18
(anonymous function)1:146
a.fn.delegatezepto.min.js:4
jzepto.min.js:4
a.fn.triggerzepto.min.js:4
J.fn.eachzepto.min.js:4
J.fn.eachzepto.min.js:4
a.fn.triggerzepto.min.js:4
Ijqtouch.min.js:8
Ljqtouch.min.js:10
jzepto.min.js:4
a.fn.triggerzepto.min.js:4
J.fn.eachzepto.min.js:4
J.fn.eachzepto.min.js:4
a.fn.triggerzepto.min.js:4
Djqtouch.min.js:1
var jQT = new $.jQTouch({});

我做错什么了吗?

您可能需要向jQTouch()传递一个空对象,如下所示:

$('#main').on('submit', '#product-form', function() {

                     var jQT = new $.jQTouch();
                    jQT.goTo('#search-results', 'slide');

                });
Uncaught TypeError: Cannot set property 'framework' of undefined
j.jQTouchjqtouch.min.js:18
(anonymous function)1:146
a.fn.delegatezepto.min.js:4
jzepto.min.js:4
a.fn.triggerzepto.min.js:4
J.fn.eachzepto.min.js:4
J.fn.eachzepto.min.js:4
a.fn.triggerzepto.min.js:4
Ijqtouch.min.js:8
Ljqtouch.min.js:10
jzepto.min.js:4
a.fn.triggerzepto.min.js:4
J.fn.eachzepto.min.js:4
J.fn.eachzepto.min.js:4
a.fn.triggerzepto.min.js:4
Djqtouch.min.js:1
var jQT = new $.jQTouch({});