$('.content input').on('click', function () {
var target = this;
setTimeout(function(){
target.scrollIntoViewIfNeeded();
console.log('scrollIntoViewIfNeeded');
},400);
结束语:
希望这篇文章能帮助到大家,如有不对之处,还请指正。愿我们一起成长。