安卓微信浏览器中type=file的input框无法使用
如果使用html的input框设为
type=file
来选择文件,在安卓的微信中打开页面时,会提示暂无可使用应用
等错误提示
解决方案
若要选择图片,需将input框的accept属性设为image/*
;若要选择文件,需将此属性设为
空
1 | <input |
1 | const acceptFileTypeArr: any = computed(() => { // 当前支持上传类型 |
祝君无Bug~
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.