我正在開發應用程序在eclipse中使用phonegap android。我已創建文件夾結構assets-> jquery.mobile folderI已經把jquery庫文件jquery.mobile-1.0rc2 .min.js等二十多個國家資產 - > WWW文件夾將HTML文件。我有包括HTMLjs事件不會觸發使用jquery mobile和phoengap for android
<script type="text/javascript" src="jquery.mobile/jquery-1.6.4.min"></script>
<script type="text/javascript" charset="utf-8" src="phonegap-1.1.0.js"></script>
<script type="text/javascript" src="jquery.mobile/jquery.mobile-1.0rc2.min.js"></script>
jQuery庫文件,HTML文件中我寫的代碼
<script type="text/javascript">
$(function() {
$('body').bind('taphold', function(e) {
alert('You tapped and held!');
e.stopImmediatePropagation();
return false;
});
$('body').bind('swipe', function(e) {
alert('You swiped!');
e.stopImmediatePropagation();
return false;
});
});
我加入的PhoneGap JAR並把插件xml文件放入xml文件夾中,誰能告訴問題是什麼問題要解決它?
感謝
我需要main.js文件運行在eclipse中的應用程序應用程序的android – kumar 2012-01-31 06:34:10
不,index.html是完整的。 – 2012-01-31 16:12:40