0
"readme.txt"찾을 수 없습니다. iPhone과 Android에서 Phonegap 예제가 작동하지 않습니다.로컬 파일 경로를 찾을 수 없습니다. Phonegap
document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail); } function gotFS(fileSystem) { fileSystem.root.getFile("readme.txt", null, gotFileEntry, fail); } function gotFileEntry(fileEntry) { console.log(evt.target.error.code); } function fail(evt) { console.log(evt.target.error.code); }
처럼
getFile()
기능에 패키지에서 경로를 추출 할 수 없습니다. 대신 상대 경로를 사용하여 파일을 읽을 수 있습니다. (발견되지 않으면 생성) –