我正在開發一個使用PhoneGap的應用程序& jQuery Mobile。jQuery Mobile無法在PhoneGap中工作Windows Phone 8
我已經完成了應用程序的android版本。我正在使用Adobe PhoneGap構建來構建我的應用程序。 Android版本正在運行完美。但是現在我試圖測試Windows Phone 8版本的應用程序。
我在Visual Studio 2012模擬器中測試了PhoneGap build app.xap
。這似乎是jQuery手機不工作。爲了測試目的,我創建了一個示例應用程序。有兩個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>
這是我得到的輸出:
這就是我需要:
謝謝大家的響應。你能告訴我一些類似jQuery Mobile的其他框架,這與IOS,Android,BB&Win兼容嗎? – 2013-03-06 08:45:20
有沒有我可以輕鬆遷移我的應用程序的任何框架?請幫助 – 2013-03-06 08:59:45
儘管jQuery Mobile不支持Windows Phone 8,但它應該稍作調整。似乎有些東西阻止jQM運行。你確定index.js沒有問題嗎? – Whizkid747 2013-03-06 16:06:49