1

我有一个Metro应用(WinJS)在VS2012这里我使用的是输入型像这样的:如何过滤文件类型输入类型=“文件”在WinJS

<input type = "file" id = "uploadCaptureInputFile" /> 

,我想筛选文件,接受只是.png格式和.jpg怎么做

+0

这个问题,[答案](http://stackoverflow.com/questions/20225629/reading-file -in-windows-metro-javascript-app/20236874#20236874)也可能是相关的 – Sushil

回答

3

与此:

<input type = "file" id = "uploadCaptureInputFile" accept="image/*" /> 
+0

谢谢你的作品! – Jesus