scrollToPoint(){ var oDiv=document.getElementById("step_"+this.chooseId); var t=document.createElement("input");t.type="text"; oDiv.insertBefore(t,null); t.focus(); oDiv.removeChild(t); }
用点击事件点击按钮后定位到指定ID的DIV
最新推荐文章于 2020-06-03 16:52:34 发布
scrollToPoint(){ var oDiv=document.getElementById("step_"+this.chooseId); var t=document.createElement("input");t.type="text"; oDiv.insertBefore(t,null); t.focus(); oDiv.removeChild(t); }