웹 개발 의 로 컬 폴 더 만 드 는 실현 방법
filemanage_util.fullPath 는 파일 을 만 드 는 경로 입 니 다.
이것 은 크로스 플랫폼 의 생 성 폴 더 입 니 다.Android 처럼 Environment.getExternalStorageDirectory()의 네 이 티 브 코드 를 통 해 만 들 지 않 습 니 다.
구현 코드:
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
// alert('ondeviceReady');
// window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem;
console.log(" ===========> : .");
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) {
console.log(" ===========> ");
//util.appRootDirName , zgky
fileSystem.root.getDirectory(filemanage_util.appRootDirName, {
create: true,
exclusive: false
}, function (entry) {
// fullPath, , , toURL()
// ,
console.log(" ===========> , !");
filemanage_util.fullPath = entry.toURL();
// alert(util.fullPath);
console.log(" ===========> :" + filemanage_util.fullPath);
//console.log(util.fullPath);
}, function () {
console.log(" ===========> !");
});
console.log(" ===========> !");
}, function () {
console.log(" ===========> ");
});
console.log(" ===========> : ");
};
이상 은 웹 이 로 컬 폴 더 를 만 드 는 실현 방법 입 니 다.궁금 한 점 이 있 으 시 면 메 시 지 를 남기 거나 본 사이트 의 커 뮤 니 티 에 가서 토론 하 십시오.읽 어 주 셔 서 감사합니다. 도움 이 되 셨 으 면 좋 겠 습 니 다.본 사이트 에 대한 지지 에 감 사 드 립 니 다!
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Portswigger의 연구실 작성: CSRF 토큰 보호를 사용한 기본 클릭재킹이 견습생 수준 실습에서는 일부 CSRF 토큰 보호가 있음에도 불구하고 클릭재킹에 취약한 웹사이트에서 계정 삭제 흐름을 악용합니다. 주어진 자격 증명으로 로그인하면 계정 페이지로 이동한 후 사용자 계정을 삭제하는 데...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.