龙卷风(2007)
SQL2000、Dotnet、Oracle、PowerDesigner
登录
注册
全站
当前博客
空间
博客
好友
相册
留言
用户操作
[即时聊天]
[发私信]
[加为好友]
邹黎鹏
ID:zlp321002
共
94595
次访问,排名
979
好友
29
人,关注者
118
人
zlp321002的文章
原创 89 篇
翻译 2 篇
转载 2 篇
评论 32 篇
最近评论
my22xo:
也发份给我吧,谢谢
iaocyf # 163.com
hertcloud:
来发一个我的.
http://blog.csdn.net/hertcloud/category/281167.aspx
oushunbao:
i = 50 * pagenum;
select top 50 * from (
select top 50 * from (
select top i * from tablename order by id asc
) as t1
order by id desc
) as t1<……
xinyu_1980:
用游标来进行分页的取得, 不是什么好方法.
yizhibi10086:
谢谢了,我们这几天在做jsp项目,正愁显示的分页问题,谢谢了
文章分类
.net
(RSS)
javascript
(RSS)
PowerDesigner
(RSS)
SQL Server 2005
(RSS)
SQL Sever2000
(RSS)
VS2005.net
(RSS)
商业智能(BI)
(RSS)
收藏
相册
公司网站
东方常智(二维码研发部)
朋友网站链接
泼猴网
存档
2008年09月(1)
2008年08月(1)
2008年07月(1)
2008年06月(1)
2008年05月(1)
2008年04月(1)
2008年03月(1)
2008年02月(1)
2008年01月(1)
2007年12月(1)
2007年11月(1)
2007年10月(1)
2007年09月(1)
2007年08月(2)
2007年06月(1)
2007年05月(2)
2007年04月(7)
2007年02月(1)
2007年01月(1)
2006年12月(1)
2006年11月(1)
2006年10月(1)
2006年09月(1)
2006年08月(5)
2006年07月(1)
2006年06月(3)
2006年05月(3)
2006年04月(3)
2006年03月(4)
2006年02月(1)
2006年01月(4)
2005年12月(3)
2005年11月(7)
2005年10月(4)
2005年09月(2)
2005年08月(5)
2005年07月(3)
2005年06月(4)
2005年05月(1)
2005年04月(2)
2005年03月(3)
2005年01月(4)
软件项目交易
订阅我的博客
javascript 中cookie的存储,获取cookie,删除cookie的方法。
收藏
新一篇: Visual Studio Team System单服务器部署
|
旧一篇: SQL Server 2005通用分页代码
函数如下:
<
script language
=
javascript
>
/**/
/*
***********************************************************************
| 函数名称: setCookie |
| 函数功能: 设置cookie函数 |
| 入口参数: name:cookie名称;value:cookie值 |
| 维护记录: Spark(创建) |
| 版权所有: (C) 2006-2007 北京东方常智科技有限公司 |
| 编写时间: 2007年9月13日 21:00 |
************************************************************************
*/
function
setCookie(name, value)
...
{
var
argv
=
setCookie.arguments;
var
argc
=
setCookie.arguments.length;
var
expires
=
(argc
>
2
)
?
argv[
2
] :
null
;
if
(expires
!=
null
)
...
{
var
LargeExpDate
=
new
Date ();
LargeExpDate.setTime(LargeExpDate.getTime()
+
(expires
*
1000
*
3600
*
24
));
}
document.cookie
=
name
+
"
=
"
+
escape (value)
+
((expires
==
null
)
?
""
: (
"
; expires=
"
+
LargeExpDate.toGMTString()));
}
/**/
/*
***********************************************************************
| 函数名称: getCookie |
| 函数功能: 读取cookie函数 |
| 入口参数: Name:cookie名称 |
| 维护记录: Spark(创建) |
| 版权所有: (C) 2006-2007 北京东方常智科技有限公司 |
| 编写时间: 2007年9月13日 21:02 |
************************************************************************
*/
function
getCookie(Name)
...
{
var
search
=
Name
+
"
=
"
if
(document.cookie.length
>
0
)
...
{
offset
=
document.cookie.indexOf(search)
if
(offset
!=
-
1
)
...
{
offset
+=
search.length
end
=
document.cookie.indexOf(
"
;
"
, offset)
if
(end
==
-
1
) end
=
document.cookie.length
return
unescape(document.cookie.substring(offset, end))
}
else
return
""
}
}
/**/
/*
***********************************************************************
| 函数名称: deleteCookie |
| 函数功能: 删除cookie函数 |
| 入口参数: Name:cookie名称 |
| 维护记录: Spark(创建) |
| 版权所有: (C) 2006-2007 北京东方常智科技有限公司 |
| 编写时间: 2007年9月15日 18:10 |
************************************************************************
*/
function
deleteCookie(name)
...
{
var
expdate
=
new
Date();
expdate.setTime(expdate.getTime()
-
(
86400
*
1000
*
1
));
setCookie(name,
""
, expdate);
}
</
script
>
使用方法:
//
1、存储Cookie
//
2、参数说明: 1、参数1:Cookie存储Name,参数2:Cookie要存储的值
//
3、例子如下:
setCookie(
'
Method
'
,match);
//
1、获取Cookie
//
2、参数说明: 1、参数1:Cookie存储的Name
//
3、例子如下:
getCookie(
'
Method
'
)
//
1、删除Cookie
//
2、参数说明: 1、参数1:Cookie存储的Name
//
3、例子如下:
deleteCookie(
'
Method
'
);
发表于 @
2007年09月15日 22:03:00
|
评论(
loading...
)
|
编辑
新一篇: Visual Studio Team System单服务器部署
|
旧一篇: SQL Server 2005通用分页代码
评论:没有评论。
发表评论
姓 名:
主 页:
校验码:
看不清,换一张
当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击
登录