繁体   English   中英

jQuery Mobile Live功能无法在Android手机中使用手机间隙

[英]jquery mobile live function not working in using phone gap for android

jQuery mobile live函数无法在使用Android的手机间隙中使用。请参阅下面的代码,谁能告诉我是什么问题,我包含了jquery libray和phongap js谁能告诉我是什么问题? 还有一个问题是,如果未触发此事件,如何在电话间隙中触发默认事件

<

link rel="stylesheet" href="jquery.mobile/jquery.mobile-1.0.1.css" type="text/css"/>
      <link rel="stylesheet" href="master.css" type="text/css"/>
      <script type="text/javascript" charset="utf-8" src="jquery.mobile/jquery-1.6.4.min"></script>
       <script type="text/javascript" charset="utf-8" src="phonegap-1.3.0.js"></script>

       <script type="text/javascript" charset="utf-8" src="jquery.mobile/jquery.mobile-1.0.1.js"></script>

$( function()
         {
 $("#body").live('swiperight', function() { 
        {
    alert( 'You swiped!' ); 
    return false;
        });
 });

谢谢

向右滑动后还有一个额外的'{'....

$('body').live('swiperight', function() { 
            alert( 'You swiped!' ); 
    return false;
        });

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM