- 发布:2015-03-22 16:11
- 更新:2015-03-23 10:43
- 阅读:1684
把代码贴出来或发私信给我看看。
-
butter (作者)
plus.io.resolveLocalFileSystemURL("/storage/emulated/0/", function(fs) {
fs.getDirectory("ABCt", {
create: true,
exclusive: false
}, function(dir) {
dir.getFile(localStorage.getItem('tit') + dddst + '.csv', {
create: true
}, function(w) {
w.createWriter(function(write) {
write.seek(0);
write.write(finalVal);
write.abort();
});
plus.nativeUI.alert("Saved successful:\n" + w.fullPath, null, "Save", "Ok");
});
}, function(e) {
plus.nativeUI.alert("Saved fail", null, "Save", "Ok");
});
}, function() {
plus.nativeUI.alert("Can't find path:\n/storage/emulated/0/", null, "Save", "Ok");
})
}
帮忙看一下感谢
原本文件都会存在ABC这个资料夹更新后会创出ABC这个资料夹但资料存在"/storage/emulated/0/"这个路径2015-03-23 12:49
butter (作者)
程式码我完全没改过资料只存在外面不存在资料夹中已试过多台手机
2015-03-23 02:51