Android 在SD卡中为multiplateform创建Phonegap目录
我正在尝试在SD卡中为多平台创建一个目录 但似乎有什么不对劲Android 在SD卡中为multiplateform创建Phonegap目录,android,cordova,Android,Cordova,我正在尝试在SD卡中为多平台创建一个目录 但似乎有什么不对劲 function createDir(dirname){ window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fileSys) { fileSys.root.getDirectory(dirname, {create: true, exclusive: false},
function createDir(dirname){
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0,
function(fileSys) {
fileSys.root.getDirectory(dirname, {create: true,
exclusive: false},
function(directory) {
console.log("Directory has been created");
}, createError);
}, createError);
}
function createError(error){
alert(error.code);
}
我需要添加任何插件使其工作吗
我认为问题出在window.requestFileSystem
中。我查不到日志。我正在使用最新的cordova
谢谢大家! 你为什么看不到日志?它跑得太快了