Android 使用Phonegap转换用Jquery编写的HTML文件

Android 使用Phonegap转换用Jquery编写的HTML文件,android,jquery,cordova,Android,Jquery,Cordova,我正在使用phonegap将我的html文件转换为android应用程序。自从我开始使用Jquery来显示/隐藏图像以来,我的按钮就变得麻木了 我已经链接到了普通的jquery文件和手机版本,但无法在android设备上使用这些按钮(它可以在internet explorer上使用,但不能在Google chrome上使用)。你知道我做错了什么吗 <meta name="viewport" content="width=device-width, initial-scale=1">

我正在使用
phonegap
将我的html文件转换为
android应用程序
。自从我开始使用Jquery来显示/隐藏图像以来,我的按钮就变得麻木了

我已经链接到了普通的jquery文件和手机版本,但无法在android设备上使用这些按钮(它可以在internet explorer上使用,但不能在Google chrome上使用)。你知道我做错了什么吗

<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="jquery.mobile-1.4.2.css">
<script src="C:\Users\Oscar\Desktop\Ja\jquery-1.11.1.js"></script>
<script src="C:\Users\Oscar\Desktop\Ja\jquery.mobile-1.4.2.js"></script>

<script>
        $(document).ready(function() {
          $('.nav-toggle').click(function(){
            //get collapse content selector
            var collapse_content_selector = $(this).attr('href');                   

            //make the collapse content to be shown or hide
            var toggle_switch = $(this);
            $(collapse_content_selector).toggle(function(){
              if($(this).css('display')=='none'){
                                //change the button label to be 'Show'
                toggle_switch.html('Info▼');
              }else{
                                //change the button label to be 'Hide'
                toggle_switch.html('Info▲');
              }
            });
          });

        }); 
        </script>

$(文档).ready(函数(){
$('.nav toggle')。单击(函数(){
//获取折叠内容选择器
var collapse_content_selector=$(this.attr('href');
//使折叠内容显示或隐藏
变量切换开关=$(此);
$(折叠内容选择器)。切换(函数(){
if($(this.css('display')=='none'){
//将按钮标签更改为“显示”
toggle_switch.html('Info▼');
}否则{
//将按钮标签更改为“隐藏”
toggle_switch.html('Info▲');
}
});
});
}); 

问题似乎来自jQuery脚本的路径

<script src="C:\Users\Oscar\Desktop\Ja\jquery-1.11.1.js"></script>
<script src="C:\Users\Oscar\Desktop\Ja\jquery.mobile-1.4.2.js"></script>

jquery-1.11.1.js
jquery.mobile-1.4.2.js
的路径应该与使用PhoneGap打包的HTML文件相关