📅  最后修改于: 2022-03-11 15:01:16.550000             🧑  作者: Mango
let c = document.cookie.split(";").reduce( (ac, cv, i) => Object.assign(ac, {[cv.split('=')[0]]: cv.split('=')[1]}), {});
console.log(c);