在ios中input輸入時出現的bug,解決方法!

 // ios的兼容
        $(':text').on("focus", function () {
            var target = this;
            setTimeout(function(){
                target.scrollIntoView(true);
            }, 100);
        })
        $(':text').on("blur", function () {
            var target = this;
            setTimeout(function(){
                target.scrollIntoView(true);
            }, 100);
        })ios

相關文章
相關標籤/搜索