PrideRock的专栏
Make something big,make something fun
登录
注册
全站
当前博客
空间
博客
好友
相册
论坛
留言
用户操作
[即时聊天]
[发私信]
[加为好友]
张英刚
ID:PrideRock
共
71449
次访问,排名
1494
,好友
206
人,关注者
272
人。
超越
PrideRock的文章
原创 34 篇
翻译 0 篇
转载 30 篇
评论 138 篇
张英刚的公告
最近评论
sodme:
小刚,有个BUG,我用GOOGLE里的删除博客功能删除时,CSDN里确实是把文章删除了,但首页仍然是显示了,点进去之后提示文章已删除.我到后台,重新生成所有页面就好了.
sodme:
小刚,有个BUG,我用GOOGLE里的删除博客功能删除时,CSDN里确实是把文章删除了,但首页仍然是显示了,点进去之后提示文章已删除.我到后台,重新生成所有页面就好了.
sodme:
小刚,有个BUG,我用GOOGLE里的删除博客功能删除时,CSDN里确实是把文章删除了,但首页仍然是显示了,点进去之后提示文章已删除.
sodme:
哈哈,我用此方法,在GOOGLE DOCS里向CSDN发了一博,哇哈哈,以后方便啦.
holon:
不错,支持一下
-------------
www.arraylist.cn
程序人生-IT人士的酒吧式交流平台
-------------
文章分类
.Net研究
(RSS)
C\C++学习
(RSS)
Javascript/CSS研究
(RSS)
Java研究
(RSS)
Linux学习
(RSS)
Python研究
(RSS)
高并发高负载网站性能研究
(RSS)
开源代码分析
(RSS)
利器研究
(RSS)
项目管理
(RSS)
协议学习
(RSS)
杂7杂8
(RSS)
收藏
相册
MetaWeblog API
我
技术站点
800CRM
CodeProject
hiDotNet
HiForums.cn
PrClub
SourceForge.net
朋友的BLOG
Ben-MySpace
Ben-Smart Space
dolphin
HanLei
Jacky
Lion.net
PrideRoCK
SkyNews
VenJiang
(RSS)
一只上进的猪
梅花雪
沈逸
沧海笑一声
铁拳
其他
HzShow
QHDShow
存档
2008年11月(1)
2008年09月(3)
2008年08月(2)
2008年07月(9)
2008年06月(1)
2008年05月(1)
2008年04月(1)
2008年03月(17)
2008年02月(1)
2008年01月(5)
2007年12月(12)
2007年10月(1)
2007年09月(1)
2007年08月(3)
2007年07月(4)
2007年06月(2)
软件项目交易
订阅我的博客
梅子开源js框架研究(1)
收藏
新一篇: 高并发高负载性能和解决方案资源索引
|
旧一篇: Seomoz公布07年Web2.0大奖
/**/
/*
---------------------------------------------------------------------------*
| Subject: JavaScript Framework
| Author: meizz
| Created: 2005-02-27
| Version: 2007-06-06
|-----------------------------------
| MSN:huangfr@msn.com QQ:112889082 Copyright(c) meizz
| http://www.meizz.com/jsframework/ MIT-style license
| The above copyright notice and this permission notice shall be
| included in all copies or substantial portions of the Software
*---------------------------------------------------------------------------
*/
if
(
typeof
(System)
!=
"
function
"
&&
typeof
(Using)
!=
"
function
"
)
...
{
var
S
=
window.System
=
function
()
...
{
this
.setHashCode();
}
S.debug
=
false
;
//
false
S.currentVersion
=
"
20070606
"
;
S._codebase
=
...
{}
;
try
...
{
if
(window
!=
parent
&&
parent.System
&&
parent.System._codebase)
S._codebase
=
parent.System._codebase;
else
if
(
typeof
(opener)
!=
"
undefined
"
&&
opener.System
&&
opener.System._codebase)
S._codebase
=
opener.System._codebase;
else
if
(
typeof
(dialogArguments)
!=
"
undefined
"
&&
dialogArguments.System)
S._codebase
=
dialogArguments.System._codebase;
}
catch
(ex)
...
{}
var
t
=
document.getElementsByTagName(
"
SCRIPT
"
);
t
=
( S.scriptElement
=
t[t.length
-
1
]).src.replace(
/
\
/
g,
"
/
"
);
S.extend
=
function
(d,s)
...
{
for
(
var
i
in
s)
d[i]
=
s[i];
return
d;
}
;
S.path
=
(t.lastIndexOf(
"
/
"
)
<
0
)
?
"
.
"
: t.substring(
0
, t.lastIndexOf(
"
/
"
));
S.resourcePath
=
S.path
+
"
/System/_resource
"
;
S.hashCounter
=
0
;
S.NOT_SUPPORTED_XMLHTTP
=
"
Your browser do not support XMLHttp
"
;
S.getUniqueId
=
function
()
...
{
return
"
mz_
"
+
(System.hashCounter
++
).toString(
36
);
}
;
S.toHashCode
=
function
(e)
...
{
if
(
typeof
(e.hashCode)
!=
"
undefined
"
)
...
{
return
e.hashCode;
}
return
(e.hashCode
=
System.getUniqueId());
}
;
S.supportsXmlHttp
=
function
()
...
{
return
"
object
"
==
typeof
(System.xhr
||
(System.xhr
=
new
XMLHttpRequest()));
}
;
S._getPrototype
=
function
(ns, argu)
...
{
if
(
typeof
(System._prototypes[ns])
==
"
undefined
"
)
return
new
System();
for
(
var
a
=
[],i
=
0
;i
<
argu.length;i
++
)
a[i]
=
"
argu[
"
+
i
+
"
]
"
;
return
eval(
"
new (System._prototypes['
"
+
ns
+
"
'])(
"
+
a.join(
"
,
"
)
+
"
)
"
);
}
;
S.ie
=
navigator.userAgent.indexOf(
"
MSIE
"
)
>
0
&&
!
window.opera;
S.alert
=
function
(msg)
...
{
if
(System.debug)
alert(msg);
}
;
S._userdata
=
(System.ie
&&
!
System.debug);S._parseResponse
=
function
(ns,s)
...
{
if
(s
==
null
||
s.charAt(
0
)
==
"
�
"
)
...
{
System.alert(
"
Maybe file encoding isn't ANSI or UTF-8
"
);
return
""
}
if
(s.charAt(
0
)
==
"
ï
"
)s
=
s.substr(
3
);
//
for firefox
s
=
s.replace(
/
(
^|
)s
*
/
/+
s
*
((Using
|
Import
|
Include)((
"
|'))/g,
"
$
1
$
2
"
);
if(System._userdata)
System.saveUserData(ns,s);
return s;
};
if( !window.XMLHttpRequest && window.ActiveXObject )
{
window.XMLHttpRequest=function()
{
for(var i=0,a=['MSXML3','MSXML2','Microsoft'];i<a.length;i++)
{
try
{
return new ActiveXObject(a[i]+'.XMLHTTP')
}
catch(ex){}
}
System.xhr=
"
mz
"
;
throw new Error(System.NOT_SUPPORTED_XMLHTTP);
}
}
S.load=function(namespace, path)
{
var x,ns=namespace,S=System;
path=S._mapPath(ns, path);
if( S._userdata && /.js$/i.test(path) && ( x=S.loadUserData(ns) ) )
return (S._codebase[ns]=
"
//
from userdata "+ x);
try
...
{
if
(S.supportsXmlHttp())
...
{
x
=
S.xhr;
x.open(
"
GET
"
,path,
false
);
x.send(
null
);
if
(x.readyState
==
4
)
...
{
if
(x.status
==
0
||/^
file:
/
i.test(path))
return
S._parseResponse(ns,x.responseText);
else
if
(x.status
==
200
)
return
S._parseResponse(ns,x.responseText);
else
if
(x.status
==
404
)
S.alert(ns
+
"
File not found
"
);
else
throw
new
Error(x.status
+
"
:
"
+
x.statusText);
}
}
else
S.alert(S.NOT_SUPPORTED_XMLHTTP);
}
catch
(ex)
...
{
S.alert(ns
+
"
"
+
ex.message);
}
return
""
;
}
;
S._exist
=
function
(ns, path)
...
{
if
(
typeof
(System._existences[ns])
==
"
undefined
"
)
return
false
;
return
System._existences[ns]
==
System._mapPath(ns,path);
}
;
S._mapPath
=
function
(ns, path)
...
{
if
(
typeof
(path)
==
"
string
"
&&
path.length
>
3
)
return
path;
var
p
=
System.path
+
"
/
"
+
ns.replace(
/
.
/
g,
"
/
"
)
+
"
.js
"
;
return
p
+
((
typeof
(path)
==
"
undefined
"
||
path)
?
""
:
"
?t=
"
+
Math.random());
}
;
window.Using
=
function
(namespace,path,rename)
...
{
var
N
=
namespace,C
=
N.substr(N.lastIndexOf(
"
.
"
)
+
1
),S
=
System,i
=
S._prototypes;
if
(S._exist(N,path))
...
{
if
(window[C]
!=
i[N])
window[C]
=
i[N];
return
}
if
(
!/
((
^|
.)[w_$]
+
)
+
$
/
.test(N))
throw
new
Error(N
+
"
nonstandard namespace
"
)
for
(
var
s,e,c
=
N
+
"
.
"
,i
=
c.indexOf(
"
.
"
);i
>-
1
;i
=
c.indexOf(
"
.
"
,i
+
1
))
...
{
e
=
c.substring(
0
,i);
s
=
(e.indexOf(
"
.
"
)
==-
1
)
?
"
window['
"
+
e
+
"
']
"
: e;
if
(e
&&
typeof
(eval(s))
==
"
undefined
"
)
eval(s
+
"
=function(){return System._getPrototype('
"
+
e
+
"
',arguments)}
"
);
}
if
(
typeof
(S._codebase[N])
!=
"
string
"
&&
(s
=
S.load(N,path)))
...
{
S._codebase[N]
=
s
+
"
; System._prototypes['
"
+
N
+
"
']=window['
"
+
(rename
||
C)
+
"
']=
"
+
C;
}
s
=
""
;
S._existences[N]
=
S._mapPath(N, path);
if
(
"
string
"
==
typeof
(s
=
System._codebase[N]))
...
{
try
...
{
(
new
Function(s))()
}
catch
(e)
...
{
System.alert(
"
Syntax error on load
"
+
N
+
"
"
+
e.message);
}
}
//
alert(System._codebase[namespace])
}
;
window.Import
=
function
(namespace,path,rename)
...
{
Using(namespace,path,rename)
}
;
window.Instance
=
function
(hashCode)
...
{
return
System._instances[hashCode]
}
;
window.Include
=
function
(namespace, path)
...
{
var
N
=
namespace,c,S
=
System,X
=
S.supportsXmlHttp();
if
(S._exist(N,path))
return
;
if
(
!/
((
^|
.)[w_$]
+
)
+
$
/
.test(N))
throw
new
Error(N
+
"
nonstandard namespace
"
)
if
(
typeof
(S._codebase[N])
!=
"
string
"
)
...
{
if
(X
&&
(c
=
S.load(N,path)))
...
{
S._codebase[N]
=
c;
}
}
S._existences[N]
=
S._mapPath(N,path);
var
B
=
(