IOS6~<input type="file">
2013-06-18 11:27
423 查看
如果正在搞IOS Web App,很可能会遇到<input type="file"> ,不幸的是,我正在搞的项目是混合型的,点击<input type="file"> 调用原生接口调出相册或相机,如果IOS6之前,不会出问题,但从IOS6开始,web中的 <input type="file"> 也会调用相机或相册接口,这样就一下子弹出两个选择框。
需要在 js 中禁用 <input type="file">
代码:$('#btn_Id input').remove();
参考链接:
http://developer.apple.com/library/ios/#releasenotes/General/RN-iOSSDK-6_0/ http://www.aaronlumsden.com/articles/ios6-the-benefits-for-html5-web-app-development/ http://www.qianduan.net/html5-support-in-safari-on-the-ios-6.html http://www.qianduan.net/iphone5ios6-front-end-development-guide.html http://www.mobilexweb.com/blog/iphone-5-ios-6-html5-developers
需要在 js 中禁用 <input type="file">
代码:$('#btn_Id input').remove();
参考链接:
http://developer.apple.com/library/ios/#releasenotes/General/RN-iOSSDK-6_0/ http://www.aaronlumsden.com/articles/ios6-the-benefits-for-html5-web-app-development/ http://www.qianduan.net/html5-support-in-safari-on-the-ios-6.html http://www.qianduan.net/iphone5ios6-front-end-development-guide.html http://www.mobilexweb.com/blog/iphone-5-ios-6-html5-developers
相关文章推荐
- input file控件限制上传文件类型 网页上添加一个input file HTML控件: 1 <input id="File1" type="file" /> 默认是这样的,所有文件类
- js 实现 <input type="file" /> 文件上传
- asp.net/c# 用<input type="file" />实现文件上传,multipart/form-data
- <input type="file">火狐兼容
- 如何让<input type="file">只显示按钮 不要显示文本路径?
- 手机浏览器<input type="file">标签调用手机拍照+分片上传
- Android WebView 支持H5图片上传<input type="file">
- <input type="file"/> 文件上传
- <input type="file" />浏览时只显示指定文件类型
- 清空上传控件<input type="file" />的值
- <input type="file"> change事件异常处理办法
- angularJS <input type="file> 图片的base64编码
- angularjs上传 和 <input type="file">与ng-model 的玩法
- asp.net 中出现<input type="file"/> 控件中获取不到全路径
- <input type="file" name="filePath" />最简单的解决方法
- <input type="file"/>实现图片预览
- The solution of html <input type = "file "> in webview not work
- <input type="file" >判断上传的文件是zip和rar类型
- <input type="file" />accept属性列表
- 将通过<input type="file">上传的txt文件存储在localStorage,提取并构建File对象