2
제출할 때 양식 데이터가 txt 파일에 저장되는 백본 js로 앱을 만듭니다. 그것은 창에서 제대로 작동합니다. 여기 내 코드입니다 : 모바일 앱에 양식 데이터 저장
var pom = document.createElement('a');
pom.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(mytext));
pom.setAttribute('download', filename);
pom.style.display = 'none';
document.body.appendChild(pom);
pom.click();
document.body.removeChild(pom);
다음 나는 코르도바하여 APK를 만들었습니다. 모바일에 APK를 설치하고 양식을 제출하면 txt 파일이 내 모바일에 저장되지 않습니다. 무엇이 문제입니까? 휴대 기기의 앱에 양식 데이터를 저장하는 다른 방법이 있습니까?