如何在全屏模式下获取iPhone或iPad浏览器/固件版本

如何在全屏模式下获取iPhone或iPad浏览器/固件版本,iphone,ios,ipad,webkit,mobile-safari,Iphone,Ios,Ipad,Webkit,Mobile Safari,我需要知道如果-webkit溢出滚动:触摸;溢出:滚动可用于我的webapp,否则我将通过iScroll获得该功能 我正在使用mootools检查本机滚动溢出是否以这种方式实现 if(Browser.version < 5.1) console.log('fix it with iScroll') else console.log('the native scrolling is available'); 上面的解决方案工作得很好,但我不想在iOS5上总是以全屏模式使用iScroll,因

我需要知道如果
-webkit溢出滚动:触摸;溢出:滚动
可用于我的webapp,否则我将通过iScroll获得该功能

我正在使用mootools检查本机滚动溢出是否以这种方式实现

if(Browser.version < 5.1) console.log('fix it with iScroll')
else console.log('the native scrolling is available');
上面的解决方案工作得很好,但我不想在iOS5上总是以全屏模式使用iScroll,因为它不像本机滚动那样平滑


我如何知道固件的版本,或者在全屏模式下是否可以使用本机滚动?

mootools 1.4.0似乎有问题。 要确保运行的是ios5(浏览器或全屏模式):

if(Browser.version < 5.1 || Browser.version == 0) console.log('fix it with iScroll')
else console.log('the native scrolling is available');
(/CPU OS 5_0/.test(navigator.userAgent) ? console.log('iOS5') : console.log('not iOS5');