phonegap iphone:文档目录的绝对路径 [英] phonegap iphone : Documents Directory Absolute path
本文介绍了phonegap iphone:文档目录的绝对路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是PhoneGap的新手,并且正在Xcode中使用它.
I am new to PhoneGap and I am using it with Xcode.
有人可以告诉我如何在index.html中到达文档目录的绝对路径吗?
Can anybody tell me how to get to the absolute path of the Documents Directory in the index.html?
推荐答案
function success(fileSystem) {
var path = fileSystem.root.fullPath;
}
// request the persistent file system
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, success, null);
path
应该指向/Documents
.
这篇关于phonegap iphone:文档目录的绝对路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文