Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/82.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
JQuery Mobile-Safari错误:尝试调用方法“bindRemove”_Jquery_Html_Jquery Mobile_Safari - Fatal编程技术网

JQuery Mobile-Safari错误:尝试调用方法“bindRemove”

JQuery Mobile-Safari错误:尝试调用方法“bindRemove”,jquery,html,jquery-mobile,safari,Jquery,Html,Jquery Mobile,Safari,我对JQuery Mobile有问题,在Safari中出现以下错误: 错误:无法在初始化之前调用页上的方法;试图调用方法“bindRemove” 因此,无法正确加载下一页 代码: 我需要Safari的支持,因为我正在制作一个iOS网络应用程序,它目前在Google Chrome上运行得非常好 JQuery移动版:1.4.4 谢谢在花了很长时间摆弄代码之后,我找到了一个解决方案。我没有使用内联JQuery,而是用两个滑动函数创建了一个文件。这是我的密码: $(document).on("swip

我对JQuery Mobile有问题,在Safari中出现以下错误: 错误:无法在初始化之前调用页上的方法;试图调用方法“bindRemove” 因此,无法正确加载下一页

代码:

我需要Safari的支持,因为我正在制作一个iOS网络应用程序,它目前在Google Chrome上运行得非常好 JQuery移动版:1.4.4
谢谢

在花了很长时间摆弄代码之后,我找到了一个解决方案。我没有使用内联JQuery,而是用两个滑动函数创建了一个文件。这是我的密码:

$(document).on("swipeleft",function(){
  $.mobile.changePage('one.html', {transition: "slide", reverse: false});
}); 

$(document).on("swiperight",function(){
  $.mobile.changePage('home.html', {transition: "slide", reverse: true});
}); 

请发布jquery和JQM的版本。我正在使用jquery Mobile 1.4.4尝试将脚本移动到头部,并确保所有标记都正确关闭。@Omar我尝试过,但没有成功,我也尝试过文档而不是正文,并围绕上述滑动功能创建了一个页面创建函数。但是这些都不起作用。你什么时候会得到这个错误呢?
$(document).on("swipeleft",function(){
  $.mobile.changePage('one.html', {transition: "slide", reverse: false});
}); 

$(document).on("swiperight",function(){
  $.mobile.changePage('home.html', {transition: "slide", reverse: true});
});