コードは、ext
最新のext3.0beat1のコードは次のとおりです。
次のようにコードコードをコピーします。
ua = navigator.useragent.tolowercase()、
check = function(r){
RETURN R.TEST(UA);
}、
ISSTRICT = document.comPatMode == "CSS1Compat"、
ISOPERA = check(/opera/)、
ischrome = check(/chrome/)、
iswebkit = check(/webkit/)、
Issafari =!
Issafari3 = Issafari && check(/version // 3/)、
Issafari4 = Issafari && check(/version // 4/)、
isie =!isopra && check(/msie/)
isie7 = isie && check(/msie 7/)、
isie8 = isie && check(/msie 8/)、
isgecko =!
isgecko3 = isgecko && check(/rv:1/.9/)、
isborderbox = isie &&!
iSwindows = check(/windows | win32/)、
ismac = check(/macintosh | mac os x/)、
isch = check(/adobeair/)、
islinux = check(/linux/)、
Issecure = /^https/i.test(window.location.protocol);
および2.2.1(ソース/コア/ext.js)
次のようにコードコードをコピーします。
var ua = navigator.useragent.tolowercase();
var isstrict = document.compatmode == "css1compat"、
ISOPRA = ua.indexof( "Opera")> -1、
Ischrome = ua.indexof( "Chrome")> -1、
Issafari =!
Issafari3 = Issafari && ua.indexof( 'webkit/5')!
isie =!isopra && ua.indexof( "msie")> -1
isie7 =!
isie8 =!
isgecko =!
isgecko3 = isgecko && ua.indexof( "rv:1.9")> -1、
isborderbox = isie &&!
isWindows =(ua.indexof( "windows")!= -1 || ua.indexof( "win32")!= -1)、
ismac =(ua.indexof( "macintosh")!= -1 || ua.indexof( "mac os x")!= -1)、
isch =(ua.indexof( "adobeair")!= -1)、
islinux =(ua.indexof( "linux")!= -1)、
Issecure = location.href.tolowercase( "https")===