function getCookie(c_name)
{
if (document.cookie.length > 0)
{
c_start = document.cookie.indexOf(c_name + "=");
if (c_start!=-1)
{
c_start = c_start + c_name.length + 1;
c_end = document.cookie.indexOf(";", c_start);
if (c_end == -1)
{
c_end = document.cookie.length;
}
return unescape(document.cookie.substring(c_start,c_end))
}
}
return ""
} function setCookie(c_name,value,expiredays)
{
var exdate = new Date();
exdate.setDate(exdate.getDate() + expiredays);
document.cookie=c_name+ "=" + escape(value) +
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}

最新文章

  1. MySQL数据库中delimiter的作用概述
  2. 介绍开源的.net通信框架NetworkComms框架之六 x509证书通信
  3. 程序中条用其他程序中已经存在的PERFORM
  4. SharePoint 2013 术语和术语集介绍
  5. Chapter 5: Container
  6. zend studio 快捷键收集
  7. Go语言(golang)开源项目大全
  8. 【Apache ZooKeeper】为ZNode设置watcher
  9. python 目录文件
  10. appium问题整理
  11. linux设备驱动模块引用和依赖
  12. win10双系统安装卸载ubuntu
  13. H5_0005:JS判断域名和时间有效期的方法
  14. numpy创建array【老鱼学numpy】
  15. HTTP Server to Client Communication
  16. JUC同步锁(五)
  17. maven - 配置强制从指定仓库拉取jar包
  18. maven 结合mybaits整合框架,打包时mapper.xml文件,mapper目录打不进war包去问题
  19. webservice的 发布
  20. python多线程概念

热门文章

  1. 读<jquery 权威指南>[2]-事件
  2. Rest接口测试,巧用firebug插件
  3. CodeForces #369 div2 D Directed Roads DFS
  4. myeclipse启动tomcat会出现 a java exception has occured错误 的解决方法
  5. MySQL与SqlServer中update操作同一个表问题
  6. SQL语句---nvl 用法
  7. C#日志记录函数
  8. VC中预处理指令与宏定义详解
  9. CBC和CTR解密模式——C++实现
  10. 循环数据forin,foreach,for of