开发者

phonegap iphone : Documents Directory Absolute path

开发者 https://www.devze.com 2023-04-09 20:26 出处:网络
I am new to PhoneGap and I am using it with Xcod开发者_开发知识库e. Can anybody tell me how to get to the absolute path of the Documents Directory in the index.html?function success(fileSystem) {

I am new to PhoneGap and I am using it with Xcod开发者_开发知识库e.

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 should point to /Documents.

0

精彩评论

暂无评论...
验证码 换一张
取 消