龙卷风(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项目,正愁显示的分页问题,谢谢了
文章分类
收藏
    相册
    公司网站
    东方常智(二维码研发部)
    朋友网站链接
    泼猴网
    存档
    软件项目交易
    订阅我的博客
    XML聚合  FeedSky
    订阅到鲜果
    订阅到Google
    订阅到抓虾
    订阅到BlogLines
    订阅到Yahoo
    订阅到GouGou
    订阅到飞鸽
    订阅到Rojo
    订阅到newsgator
    订阅到netvibes

    原创 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通用分页代码

    评论:没有评论。

    发表评论  


    当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击登录
    Csdn Blog version 3.1a
    Copyright © 邹黎鹏