如何浏览和SD卡使用的PhoneGap 3.0选择一个文件? [英] How to browse and select a file from sdcard using Phonegap 3.0?
问题描述
通过PhoneGap的3.0 API走了。
Gone through API of Phonegap 3.0.
我想从浏览SD卡中的文件时,我使用的用户界面点击链接或按钮
I want to browse files from SD card when i click on link or button by using UI
例如:
<p onclick="browseFile()">Upload</p>
让我们假设browseFile()函数中包含浏览,但需要用户界面的实现。
let assume browseFile() function contains the browsing but require UI implementation.
或
<input type="file">
但是当我使用INPUT TYPE =文件,它是由画廊和音乐曲目,但不能从SD卡浏览文件。
But when i use input type=file,it is browsing file from Gallery and Music Tracks but not from SD card.
我想,我应该能够使用用户界面来选择SD文件,当我点击链接或按钮
I want that i should be able to select file from SD by using UI when i click on link or button
任何人都可以建议的链接,同样这给Java脚本code以及用户界面从SD卡浏览文件?
Can anyone suggest the link for same which give Java Script code along with UI for browsing file from SD card?
推荐答案
有出位的现成的无解。不幸的是,你必须自己建立它,使用文件API 。
There is no out-of-the-box solution. Unfortunately, you have to build it yourself, using File API.
这里你有一个例子,构建使用jQuery移动。
Here you have an example, build using jQuery Mobile.
这篇关于如何浏览和SD卡使用的PhoneGap 3.0选择一个文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!