위챗 6.74 ios12 버전 호환

2014 단어
// 6.74 ios12 
var u = navigator.userAgent;
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
if(isiOS){
    $("input,textarea,select").blur(function(){
        setTimeout(function(){
            const scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0;
            window.scrollTo(0, Math.max(scrollHeight - 1, 0));
        }, 50);
    })
}

 
 
// 6.74 ios12 
var u = navigator.userAgent;
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
if(isiOS && window.jQuery){
    $("input,textarea,select").blur(function(){
        setTimeout(function(){
            var scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0;
            window.scrollTo(0, Math.max(scrollHeight - 1, 0));
        }, 50);
    })
}

 
다음으로 전송:https://www.cnblogs.com/beimingbingpo/p/10120712.html

좋은 웹페이지 즐겨찾기