ios中鍵盤迴落留白問題

https://juejin.im/post/5cff9601f265da1bc5525aae?utm_source=gold_browser_extensionpost

handleFocus(event) {
    clearTimeout(this.timer);
}
handleblur() {
    this.timer = setTimeout(() => {
        document.body.scrollTop = 0;
        window.pageXOffset = 0;
        document.documentElement.scrollTop = 0;
    }, 100);
}
相關文章
相關標籤/搜索