- 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 - 安卓微信浏览器打开H5页面输入框聚焦键盘弹起时,微信切换到后台运行再切换到前台,键盘自动收起页面留白
[图片][图片] 手机:OPPO Reno8 、Android 12 微信版本:8.0.28 代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="Cache-Control" content="no-siteapp" /> <meta name="keywords" content="这里写关键字"> <meta name="description" content="这里写页面描述"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> <meta name="format-detection" content="telephone=no,email=no" /> <title>test</title> <style> body { background: #eee; } .page { padding: 20px; } .u-txt { height: 36px; line-height: 36px; border: #ccc solid 1px; padding-left: 10px; width: 300px; } </style> </head> <body> <div class="page"> <input type="text" class="u-txt" placeholder="输入框" /> </div> </body> </html>
2022-11-09 - input/textarea maxlength限制后还能继续输入替换掉之前输入的内容
荣耀30 <Input maxlength={10} /> 英文键盘输入"aaaaaaaaaa",然后继续输入"bb",会将之前输入内容替换成后面输入的,最终变成"aaaaaaaabb" 代码片段:https://developers.weixin.qq.com/s/dL3koSmh7dpH
2021-04-26