在文本框失去焦点时加入以下代码
$('input,textarea').blur(function () { setTimeout(function(){ window.scrollTo(0,document.documentElement.clientHeight); },100) });
zhangmm96 2019-07-02 10:12 原文
在文本框失去焦点时加入以下代码
$('input,textarea').blur(function () { setTimeout(function(){ window.scrollTo(0,document.documentElement.clientHeight); },100) });