一.设置cookie function setCookie(name, value){ Days = 1; var exp = new Date(); exp.setTime(exp.getTime() + Days*24*60*60*1000); var domain = window.location.host; var domains = domain.split('.'); if (domains.length === 3){ domains = domains.slice(1,3);…