- input="file" 在安卓微信浏览器里,不触发onchange事件
[图片] [图片] [图片] [图片] <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <input class="u-upload" type="file" accept="image/*" multiple onchange="changeFn()" /> </body> <script> function changeFn() { alert(1) var files = document.getElementsByName('u-upload').files; console.log(files) } </script> </html> 微信版本:8.0.35,安卓 荣耀30 multiple多选的情况会出现onchange回调不触发的情况,单选正常
2023-05-09 - 手机微信浏览器 input type=‘file’ 无法获取图库相片?
华为畅享20 Pro <input type="file" class='file' ref='file' @change='filesChange' accept="image/*" multiple :disabled="uploading"/> 进入相册后,再进入图库选择后点击完成却无反应
2023-04-18