摘要:
/***操作Cookie添加*@paramname*@paramvalue*@return*/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.se 阅读全文