//h5 wap 键盘遮挡input 框,解决方案 if (/Android [4-6]/.test(navigator.appVersion)) { window.addEventListener('resize', function () { if (document.activeElement.tagName === 'INPUT' || document.activeElement.tagName === 'TEXTAREA') { window.setTimeout(function () { document.activeElement.scrollIntoViewIfNeeded() }, 0) } }) }