【发布时间】:2014-02-23 11:50:55
【问题描述】:
我正在尝试在 phonegap 中使用 jquery mobile 构建一个 android 应用程序。我的代码在浏览器中运行良好,但是当我尝试在 android 模拟器上运行它时它不起作用。这是它在浏览器和 android 模拟器中的外观
http://i58.tinypic.com/2ci8pl0.jpg
<head>
<meta charset="utf-8" />
<title>View Source</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link rel="stylesheet" href="_/css/jquery.mobile.css" />
<link rel="stylesheet" href="_/css/mystyles.css" />
<script src="_/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="cordova-2.4.0.js"></script>
<script src="_/js/myscript.js"></script>
<script src="_/js/jquery.mobile.js"></script>
</head>
这是我的 index.html 文件的开头部分。
我已正确链接所有文件。但是不知道是什么问题
【问题讨论】:
-
脚本和 css 中的下划线引用包括什么?你真的把文件放在 www/_/js 和 www/_/css 里了吗?
-
是的。我把文件放在那里
标签: android eclipse jquery-mobile cordova