2014-07-14 9 views
1

2 주 동안 Cordova (또는 phonegap) Android 앱을 사용하여 포장 한 apk가 index.html을 두 번로드 (두 페이지가 겹침) 한 다음 이벤트가 발생했습니다. 두 번이나.Cordova (또는 phonegap) android 앱이 index.html을 두 번로드했습니다

세부 사항 : 너무 혼란

1. I disigned a html5 page with contruct2 in which touch a image then alert "Ok"; 
2. I exported the project to android or phonegap 

3. I wrapped it with CLI of crosswalk,it works fine; 
4. I wrapped it with XDK,it works fine too; 

5.I dont like these above two tools,apk size is too big; 

6.I wrapped it(pages exported android or pages exported phonegap) 
    with CLI of cordova and CLI of Phonegap ,all fine except but the index.html 
    was loaded twice (the two pages overlap) and when touched the image, it alert twice. 

는 SB 도와 줄 수

, 고마워요.

답변

1

이뿐만 아니라 나에게 일어난 것 같았다. 이게 이상하게 들리 겠지만 스크립트 태그 사이에 공백이 있습니까?

<script src="phonegap.js"> </script> 

공간을 제거했으며 복제가 중단되었습니다.