我正在使用PhoneGap和jQuery Mobile开发一个应用程序。
我已经完成了该应用程序的Android版本。我正在使用Adobe PhoneGap build来构建我的应用程序。Android版本运行得很完美。但现在,我正在尝试测试该应用程序的Windows Phone 8版本。
我在Visual Studio 2012模拟器中测试了PhoneGap build的app.xap。它似乎无法正常工作。为了测试,我创建了一个具有两个jQuery Mobile页面的示例应用程序。这也不起作用。
请帮帮我。任何类型的帮助都将不胜感激。谢谢,=)请告诉我哪里出错了。
以下是我的示例代码:
这是我的输出结果: 这是我需要的内容:
(注意:本文中的 HTML 标签已保留,不作进一步解释。)
我已经完成了该应用程序的Android版本。我正在使用Adobe PhoneGap build来构建我的应用程序。Android版本运行得很完美。但现在,我正在尝试测试该应用程序的Windows Phone 8版本。
我在Visual Studio 2012模拟器中测试了PhoneGap build的app.xap。它似乎无法正常工作。为了测试,我创建了一个具有两个jQuery Mobile页面的示例应用程序。这也不起作用。
请帮帮我。任何类型的帮助都将不胜感激。谢谢,=)请告诉我哪里出错了。
以下是我的示例代码:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<!--[if IE 7]><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /><![endif]-->
<link rel="stylesheet" href="css/index.css" />
<link rel="stylesheet" href="jquery.mobile/jquery.mobile-1.1.0.css" />
<title>Hello World</title>
</head>
<body>
<div data-role="page" id="page1">
<div data-theme="a" data-role="header">
<h3>
Header
</h3>
</div>
<div data-role="content">
<a data-role="button" href="#page2">
Button
</a>
</div>
<div data-theme="a" data-role="footer" data-position="fixed">
<h3>
Footer
</h3>
</div>
</div>
<div data-role="page" id="page2">
<div data-role="content">
<img src="https://maps.googleapis.com/maps/api/staticmap?center=Madison, WI&zoom=14&size=288x200&markers=Madison, WI&sensor=false"
width="288" height="200">
<a data-role="button" href="#page1">
Button
</a>
<div data-role="navbar" data-iconpos="top">
<ul>
<li>
<a href="#page1" data-transition="fade" data-theme="" data-icon="">
Button
</a>
</li>
</ul>
</div>
</div>
</div>
<script type="text/javascript" src="cordova-2.5.0.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript" src="jquery.mobile/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="jquery.mobile/jquery.mobile-1.2.0.js"></script>
<script type="text/javascript">
app.initialize();
</script>
</body>
</html>
这是我的输出结果: 这是我需要的内容:
(注意:本文中的 HTML 标签已保留,不作进一步解释。)