PhoneGap的 - 显示可用空间? [英] PhoneGap - Display available free space?
本文介绍了PhoneGap的 - 显示可用空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用PhoneGap的,我试图向用户显示的可用空间可用于存储量。
I am using PhoneGap and am trying to display to the user the amount of free space available for storage.
我尝试了各种不同类型的code得到这个工作,但没有运气。
I have tried various different types of code to get this to work but without luck.
有没有人有如何在PhoneGap的显示可用存储空间工作的例子?我目前工作的机器人,但我在寻找一个PhoneGap的跨平台解决方案。
Does anyone have a working example of how to display free storage space in PhoneGap? I am currently working in android but I'm looking for a phonegap cross platform solution.
感谢您。
推荐答案
多为自我参照,现在有一个API,这样的:
mostly for self-reference, there is now an api for this :
cordova.exec(win, fail, "File", "getFreeDiskSpace", []);
这篇关于PhoneGap的 - 显示可用空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文