设置 cookie 的函数//设置cookie函数function setCookie(cname, cvalue, exdays = 1) { var d = new Date(); ...