ios - phonegap iphone : Documents Directory Absolute path
<p><p>我是 PhoneGap 的新手,我在 Xcode 中使用它。</p>
<p>谁能告诉我如何在 index.html 中找到文档目录的绝对路径?</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><pre><code>function success(fileSystem) {
var path = fileSystem.root.fullPath;
}
// request the persistent file system
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, success, null);
</code></pre>
<p><code>path</code> 应该指向 <code>/Documents</code>。</p></p>
<p style="font-size: 20px;">关于ios - phonegap iphone : Documents Directory Absolute path,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/7608767/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/7608767/
</a>
</p>
页:
[1]