다음은 제가 따르고있는 자습서입니다.코르도바 | 'cordova run android'의 'cordova build'에서 'www'가 복원됩니다.
http://ccoenraets.github.io/cordova-tutorial/setup-files.html
나는 Module 3: Setting Up the Workshop Files
에 4 단계에 1을했습니다. 문제는 5 번입니다. 이전 페이지와 똑같은 cordova build
과 cordova run android
을 입력했습니다. 해당 명령을 입력하면 복사 된 내용이 폴더로 복원됩니다.
index.html 미리보기 이미지는 초기 시작으로 복원되지만 초보자 용으로 복원됩니다.
여기에 처음으로 index.html 코드가 있습니다.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
<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" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<title>Hello World</title>
</head>
<body>
<div class="app">
<h1>Apache Cordova</h1>
<div id="deviceready" class="blink">
<p class="event listening">Connecting to Device</p>
<p class="event received">Device is Ready</p>
</div>
</div>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/index.js"></script>
</body>
나는 어떤 오류가 발생하지 않았다 그런데 왜 자동으로 복원 했습니까? 내가 뭐 놓친 거 없니? 누구나 같은 경험을합니까? 당신이 다음 각 Cordova build
에 다시 생성됩니다 플랫폼 관련 assets/www
폴더에 뭔가를 수정 한 경우
의 전체 목록을 볼 수 있습니다. 예를 들어, 안드로이드를 추가 한 다음 코도바를 빌드 할 때마다 안드로이드/자산/www를 다시 생성합니다. – AAhad
@AAhad uhm .. 아직 이해할 수 없습니다. C : \ dev \ plz \ workshop \ platforms \ android \ assets \ www (경로)에있는 index.html을 수정했습니다. 이걸로 내가 치워야 겠어 ... 내가하고 싶은 것은 장치 화면에 표시된 원본 index.html을 변경하는 것뿐입니다. 튜토리얼을 어떻게 따라 할 수 있습니까? –
"C : \ dev \ plz \ workshop \ platforms \ android \ assets \ www"안에 변경 한 다음 다시 생성됩니까? – AAhad