js使用cookie存取值
将数据存入cookie中,设置时间365天。function setCookie (name, value) { var Days = 365 var exp = new Date() exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000) document.cookie = name + '=' + escape(val