摘要:
一、js操作cookie:functionSetCookie(name,value,days)//两个参数,一个是cookie的名子,一个是值{varDays=30;if(typeof(days)=="undefined"||isNaN(days))Days=parseInt(days.toString());//此cookie将被保存30天-1为浏览器关闭 if(Days!=-1){varexp=newDate();//newDate("December31,9998");exp.setTime(exp.getTime()+Days*24*60*60* 阅读全文