liuwei-blog
test
1
var
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)
编辑
收藏
新用户注册
刷新评论列表
只有注册用户
登录
后才能发表评论。
网站导航:
博客园
IT新闻
Chat2DB
C++博客
博问
管理
My Links
首页
联系
聚合
管理
Blog Stats
随笔 - 0
文章 - 1
评论 - 0
Trackbacks - 0
留言簿
给我留言
查看公开留言
查看私人留言
文章档案
(1)
2008年10月 (1)
搜索
最新评论
Powered by:
BlogJava
Copyright © lw-java