简体   繁体   中英

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

jquery mobile live function not working in using phone gap for android .see my below code can anybody tell what is problem I have included jquery libray and phongap js can anybody tell what is problem ? and one more question is if this event is not fired how to fire default event in phone gap

<

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;
        });
 });

Thanks

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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