前端设置用户设置,获取,清空Cookie setCookie,getCookie,clearCookie
直接贴代码functionsetCookie(name,value,seconds){seconds=seconds||0;//seconds有值就直接赋值,没有为0varexpires="";if(seconds!=0){//设置cookie生存时间vardate=newDate();date.setTime(date.getTime()+(seconds*1000));expires=";ex