ios中软键盘问题

angular中解决:

ngAfterViewInit(): void {
      document.body.addEventListener('focusout', function () {
      window.scrollTo(0, 0);
      document.body.scrollIntoView();
      document.documentElement.scrollIntoView();
    });
  }
原文地址:https://www.cnblogs.com/boreguo/p/12307926.html