JavaScript 设置Cookie

author Owner  •  Filed under templates, internet

function setCookie(name,value){
  var Days=30;
  var exp = new Date();
  exp.setTime(exp.getTime()+Days*24*60*60*1000);
  document.cookie = name+"="+escape(value)+";
  expires="+exp.toGMTString();
}

Tagged: orci, lectus, varius, turpis

Comments (0)  • 2014-05-24 11:35:18 •  Edit

0 Responses

最新文章