JS 设置Cookie 有效期 检测cookie 设置cookie函数直接上代码:functionsetCookie(name,value,days){//设置cookievard=newDate();d.setTime(d.getTime( 检测cookie