[JavaScript] jQuery mobile在手机上实现左右滑动切换页面的效果代码 →→→→→进入此内容的聊天室

来自 , 2019-06-18, 写在 JavaScript, 查看 103 次.
URL http://www.code666.cn/view/e0a0a422
  1. $(function() {
  2. $("body").bind('swiperight', function() {
  3.   $.mobile.changePage("#foo", {transition: "slide", reverse:true},false);
  4. }).bind('swipeleft', function() {
  5.    $.mobile.changePage("#bar", { transition: "slide"},true);
  6. });
  7. });
  8.  
  9.  
  10.  
  11. $.mobile.changePage("save.html",
  12.                         {type:"post",
  13.                         data:$("form#dataFrm").serialize(),
  14.                         transition:"slide"}
  15.                        );
  16. //javascript/7299

回复 "jQuery mobile在手机上实现左右滑动切换页面的效果代码"

这儿你可以回复上面这条便签

captcha