liuwei-blog

test

 1var Prototype = {
 2  Version: '1.6.0.2',
 3
 4  Browser: {
 5    IE:     !!(window.attachEvent && !window.opera),
 6    Opera:  !!window.opera,
 7    WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1,
 8    Gecko:  navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1,
 9    MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)
10  }
,
11
12  BrowserFeatures: {
13    XPath: !!document.evaluate,
14    ElementExtensions: !!window.HTMLElement,
15    SpecificElementExtensions:
16      document.createElement('div').__proto__ &&
17      document.createElement('div').__proto__ !==
18        document.createElement('form').__proto__
19  }
,
20
21  ScriptFragment: '<script[^>]*>([\\S\\s]*?)<\/script>',
22  JSONFilter: /^\/\*-secure-([\s\S]*)\*\/\s*$/,
23
24  emptyFunction: function() { },
25  K: function(x) return x }
26}
;

posted on 2008-10-06 21:17 lw-java 阅读(67) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航:
 

My Links

Blog Stats

留言簿

文章档案(1)

搜索

最新评论