标签:dde for fun pre window div element listen input
function inputHandle(){ let inputs = document.getElementsByTagName("input"); for(let i = 0;i<inputs.length;i++){ let item = inputs[i]; item.addEventListener(‘blur‘,function(){ setTimeout(function(){ window.scrollTo(0, 0) },100) }) } }
标签:dde for fun pre window div element listen input
原文地址:https://www.cnblogs.com/rabbitstudent/p/12850834.html